mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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 |
||
|---|---|---|
| .. | ||
| expect | ||
| model_defs | ||
| debug_embed_params.py | ||
| export_onnx_tests_filter.py | ||
| export_onnx_tests_generator.py | ||
| pytorch_helper.py | ||
| test_caffe2_common.py | ||
| test_custom_ops.py | ||
| test_models_onnxruntime.py | ||
| test_models.py | ||
| test_onnx_common.py | ||
| test_onnx_opset.py | ||
| test_operators.py | ||
| test_pytorch_common.py | ||
| test_pytorch_helper.py | ||
| test_pytorch_onnx_caffe2_quantized.py | ||
| test_pytorch_onnx_caffe2.py | ||
| test_pytorch_onnx_onnxruntime.py | ||
| test_pytorch_onnx_shape_inference.py | ||
| test_utility_funs.py | ||
| test_verify.py | ||
| verify.py | ||