pytorch/caffe2/python
Aaron Gokaslan b7b2178204 [BE]: Remove useless lambdas (#113602)
Applies PLW0108 which removes useless lambda calls in Python, the rule is in preview so it is not ready to be enabled by default just yet. These are the autofixes from the rule.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/113602
Approved by: https://github.com/albanD
2023-11-14 20:06:48 +00:00
..
benchmarks Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
docs Change caffe2 branch links to main (#100129) 2023-04-27 10:31:50 +00:00
examples [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
fakelowp Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
helpers Support ArgMin in c2_pt_converter 2020-12-05 16:35:34 -08:00
ideep [CODEMOD][caffe2] replace numpy.bool with bool (#111432) 2023-10-18 18:56:40 +00:00
layers [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
mint [typing] suppress errors in fbcode/caffe2 - batch 2 2021-07-21 17:56:26 -07:00
mkl Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
modeling [CODEMOD][caffe2] replace uses of np.float with np.float64 (#112675) 2023-11-03 03:00:51 +00:00
models [BE]: enable ruff rules PLR1722 and PLW3301 (#109461) 2023-09-18 02:07:21 +00:00
onnx [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
operator_test [CODEMOD][caffe2] replace uses of np.float with np.float64 (#112675) 2023-11-03 03:00:51 +00:00
predictor [BE]: Cleanup deprecated stdlib imports (UP006,UP035) (#101361) 2023-05-15 14:32:41 +00:00
rnn Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
serialized_test [caffe2] replace numpy.object with object (#111494) 2023-10-19 04:37:00 +00:00
test Fix possible naming collision issue (#107743) 2023-09-08 17:39:27 +00:00
trt [BE] Get rid of six in caffe2 code (#93956) 2023-02-02 22:13:37 +00:00
__init__.py Revert "Upgrade NVTX to NVTX3 (#90689)" 2023-03-24 18:16:06 +00:00
_import_c_extension.py Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
_import_c_extension.pyi [BE]: Apply PYI autofixes to various types (#107521) 2023-08-20 02:42:21 +00:00
allcompare_test.py Disallow versionless Python shebangs (#58275) 2021-05-14 08:26:02 -07:00
attention.py
benchmark_generator.py Fix ONNX ATen fallback for non-caffe2 engines 2022-04-14 23:18:45 +00:00
binarysize.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
brew_test.py
brew.py [pytorch] Update caffe2/python to eliminate Pyre errors (#52083) 2021-02-11 11:04:59 -08:00
build.py
cached_reader.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
caffe_translator_test.py
caffe_translator.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
checkpoint_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
checkpoint.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
clean_workspace_test.py extract out the clean workspace test to its own file (#88682) 2022-11-09 13:48:57 +00:00
CMakeLists.txt Move workspace related functions to separate file (#87651) 2022-10-29 04:52:01 +00:00
cnn.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
context_test.py caffe2: refactor context to allow being typed (#48340) 2020-11-30 18:31:14 -08:00
context.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
context.pyi [BE] Enable Ruff's Flake8 PYI001 (#112823) 2023-11-03 17:25:39 +00:00
control_ops_grad_test.py
control_ops_grad.py
control_ops_util.py
control_test.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
control.py [BE] Get rid of future (#92596) 2023-01-19 08:46:50 +00:00
convert_test.py Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
convert.py Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
convnet_benchmarks_test.py
convnet_benchmarks.py
core_gradients_test.py Fix some typos. 2022-04-11 21:55:59 +00:00
core_test.py [CODEMOD][caffe2] replace uses of np.float with np.float64 (#112675) 2023-11-03 03:00:51 +00:00
core.py [CODEMOD][caffe2] replace numpy.bool with bool (#111432) 2023-10-18 18:56:40 +00:00
crf_predict.py
crf_viterbi_test.py
crf.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
data_parallel_model_test.py [Codemod][[codemod] Replace third-party mock with unittest.mock] caffe2/caffe2 (#106541) 2023-09-29 18:09:49 +00:00
data_parallel_model.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
data_workers_test.py
data_workers.py Drop some Python 2 compatibility code (#51769) 2021-02-11 11:02:33 -08:00
dataio_test.py Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
dataio.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
dataset.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
db_file_reader.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
db_test.py
device_checker.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
dlpack.h Add DLPack support for XPU backend by mapping to kDLOneAPI in DLPack … (#94968) 2023-03-30 04:32:15 +00:00
dyndep.py
embedding_generation_benchmark.py
experiment_util.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
extension_loader.py
fakefp16_transform_lib.py
filler_test.py
functional_test.py
functional.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
fused_8bit_rowwise_conversion_ops_test.py Fix fused_8bit_rowwise_conversion_ops_test (#98183) 2023-04-04 16:06:13 +00:00
gradient_check_test.py [pytorch] Update caffe2/python to eliminate Pyre errors (#52083) 2021-02-11 11:04:59 -08:00
gradient_checker.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
gru_cell.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
hip_test_util.py
hsm_util.py
hypothesis_test_util.py [CODEMOD][caffe2] replace numpy.bool with bool (#111432) 2023-10-18 18:56:40 +00:00
hypothesis_test.py [CODEMOD][caffe2] replace numpy.bool with bool (#111432) 2023-10-18 18:56:40 +00:00
ideep_test_util.py Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
layer_model_helper.py [CODEMOD][caffe2] replace uses of np.float with np.float64 (#112675) 2023-11-03 03:00:51 +00:00
layer_model_instantiator.py
layer_parameter_sharing_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
layer_test_util.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
layers_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
lazy_dyndep_test.py Disallow versionless Python shebangs (#58275) 2021-05-14 08:26:02 -07:00
lazy_dyndep.py
lazy.py
lengths_reducer_fused_8bit_rowwise_ops_test.py
lengths_reducer_rowwise_8bit_ops_test.py
lstm_benchmark.py
memonger_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
memonger.py [BE]: Remove useless lambdas (#113602) 2023-11-14 20:06:48 +00:00
mkl_test_util.py
model_device_test.py
model_helper_test.py
model_helper.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
modifier_context.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
mpi_python.cc
muji_test.py
muji.py
net_builder_test.py Enable flake8-bugbear B020 lint (#110823) 2023-10-24 22:43:47 +00:00
net_builder.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
net_drawer.py [BE]: Remove useless lambdas (#113602) 2023-11-14 20:06:48 +00:00
net_printer_test.py
net_printer.py Fix usages of contextmanager without finally (#96170) 2023-03-08 20:59:27 +00:00
nomnigraph_test.py Drop unused imports from caffe2/python (#49980) 2021-01-05 13:17:46 -08:00
nomnigraph_transformations_test.py
nomnigraph_transformations.py
nomnigraph.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
normalizer_context.py caffe2: refactor context to allow being typed (#48340) 2020-11-30 18:31:14 -08:00
normalizer_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
normalizer.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
numa_benchmark.py
numa_test.py
observer_test.py
operator_fp_exceptions_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
optimizer_context.py caffe2: refactor context to allow being typed (#48340) 2020-11-30 18:31:14 -08:00
optimizer_test_util.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
optimizer_test.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
optimizer.py [fix] Disable EMA if ema_alpha is set to None (#98992) 2023-04-18 17:28:07 +00:00
parallel_workers_test.py [BE]: Remove useless lambdas (#113602) 2023-11-14 20:06:48 +00:00
parallel_workers.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
parallelize_bmuf_distributed_test.py
pipeline_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
pipeline.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
predictor_constants.py
pybind_state_dlpack.cc Bump dlpack.h to latest version (#65047) 2022-01-21 16:55:14 +00:00
pybind_state_dlpack.h Bump dlpack.h to latest version (#65047) 2022-01-21 16:55:14 +00:00
pybind_state_gpu.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
pybind_state_hip.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
pybind_state_ideep.cc Update fbcode symlinks for mkl-dnn ideep 2.5.2 2022-03-04 06:40:08 +00:00
pybind_state_int8.cc Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
pybind_state_nomni.cc [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
pybind_state_registry.cc Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
pybind_state_registry.h
pybind_state.cc Fix typo under caffe2 directory (#110825) 2023-10-08 20:48:12 +00:00
pybind_state.h [Cmake] Check that gcc-9.4 or newer is used (#112858) 2023-11-06 17:19:53 +00:00
pybind_workspace.cc [caffe2] Fix pybind11 native python link error (#92325) 2023-01-26 02:33:17 +00:00
pybind_workspace.h [caffe2] Fix pybind11 native python link error (#92325) 2023-01-26 02:33:17 +00:00
python_op_test.py Remove unused six code for Python 2/3 compatibility (#48077) 2020-12-22 18:07:08 -08:00
queue_util.py
record_queue.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
recurrent.py [BE] Get rid of future (#92596) 2023-01-19 08:46:50 +00:00
regularizer_context.py caffe2: refactor context to allow being typed (#48340) 2020-11-30 18:31:14 -08:00
regularizer_test.py Enable FP16 sparse regularizer 2021-02-12 12:29:32 -08:00
regularizer.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
rnn_cell.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
schema_test.py [codemod][numpy] replace np.str with str (#103931) 2023-06-21 18:16:42 +00:00
schema.py Enable flake8-bugbear B020 lint (#110823) 2023-10-24 22:43:47 +00:00
scope_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
scope.py
session_test.py
session.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
sparse_to_dense_mask_test.py [CODEMOD][caffe2] replace uses of np.float with np.float64 (#112675) 2023-11-03 03:00:51 +00:00
sparse_to_dense_test.py
task_test.py
task.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
test_util.py Add a make_tempdir() utility function to the TestCase base class (#51762) 2021-02-12 10:56:01 -08:00
text_file_reader.py
timeout_guard.py [BE] Get rid of future (#92596) 2023-01-19 08:46:50 +00:00
toy_regression_test.py
transformations_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
transformations.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
tt_core_test.py [BE]: Apply pyupgrade yield from and unit test alias upgrades (#94309) 2023-02-07 20:08:58 +00:00
tt_core.py
utils_test.py
utils.py [codemod][numpy] replace np.str with str (#103931) 2023-06-21 18:16:42 +00:00
visualize.py [BE]: pyupgrade Python to 3.8 - imports and object inheritance only (#94308) 2023-02-07 21:10:56 +00:00
workspace_test.py [caffe2] replace numpy.object with object (#111494) 2023-10-19 04:37:00 +00:00
workspace.py [caffe2] replace numpy.object with object (#111494) 2023-10-19 04:37:00 +00:00