pytorch/test/onnx
Alexander Grund 93719440b8 Replace map(lambda constructs (#46462)
Summary:
Follow-up of https://github.com/pytorch/pytorch/issues/46461 with a similar goal

Makes them more readable and possibly faster. Care has to be taken because `map` applies the function immediately while `(x for x in xs)` is a generator expression which gets evaluated later. This is a benefit in some cases where it is not required to actually create the list of values in memory (e.g. when passing to `tuple` or `extend` or `join`)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/46462

Reviewed By: zou3519

Differential Revision: D24422343

Pulled By: ezyang

fbshipit-source-id: 252e33499c92ac0b15238f2df32681dbbda2b237
2020-10-22 09:50:22 -07:00
..
expect [ONNX] Export var, var_mean and std_mean ops (#45678) 2020-10-21 11:23:54 -07:00
model_defs Fix exception chaining in test/ (#44193) 2020-09-14 14:20:16 -07:00
debug_embed_params.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
export_onnx_tests_filter.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
export_onnx_tests_generator.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
pytorch_helper.py Move ONNX integration tests from onnx-fb-universe to PyTorch repo (#7397) 2018-05-11 15:05:18 -07:00
test_caffe2_common.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_custom_ops.py [ONNX] Extend op registration to next opsets (#32943) 2020-02-07 10:37:50 -08:00
test_models_onnxruntime.py [ONNX] Improve scripting inplace indexing ops (#44351) 2020-09-28 00:32:36 -07:00
test_models.py [ONNX] Fix flatten operator (#45632) 2020-10-14 12:44:25 -07:00
test_onnx_common.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_onnx_opset.py [ONNX] Export var, var_mean and std_mean ops (#45678) 2020-10-21 11:23:54 -07:00
test_operators.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_pytorch_common.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_pytorch_helper.py Move ONNX circle ci build to torch and remove all caffe2 CI job/workflows (#44595) 2020-09-14 09:50:13 -07:00
test_pytorch_onnx_caffe2_quantized.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_pytorch_onnx_caffe2.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_pytorch_onnx_onnxruntime.py [ONNX] Export var, var_mean and std_mean ops (#45678) 2020-10-21 11:23:54 -07:00
test_pytorch_onnx_shape_inference.py [ONNX] Add dim_param support in export with onnx shape inference (#44920) 2020-09-30 21:56:24 -07:00
test_utility_funs.py [ONNX] Updates to diagnostic tool to find missing ops (#44124) 2020-09-18 10:32:30 -07:00
test_verify.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
verify.py Replace map(lambda constructs (#46462) 2020-10-22 09:50:22 -07:00