mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
* Automatically applies ruff rule 401. Turns loops into equivalent list comprehensions which are faster and do not leak the scope of the loop variables. * list comprehensions not only often have better typing, but are 50+% faster than for loops on overhead. They also preserve length information etc and are better for the interpreter to optimize. * Manually went back and made mypy happy after the change. * Also fixed style lints in files covered by flake8 but not by pyfmt Pull Request resolved: https://github.com/pytorch/pytorch/pull/140980 Approved by: https://github.com/justinchuby, https://github.com/malfet |
||
|---|---|---|
| .. | ||
| analyze | ||
| __init__.py | ||
| _digraph.py | ||
| _directory_reader.py | ||
| _importlib.py | ||
| _mangling.py | ||
| _mock.py | ||
| _package_pickler.py | ||
| _package_unpickler.py | ||
| _stdlib.py | ||
| file_structure_representation.py | ||
| find_file_dependencies.py | ||
| glob_group.py | ||
| importer.py | ||
| mangling.md | ||
| package_exporter.py | ||
| package_importer.py | ||