pytorch/torchgen/api
Aaron Gokaslan ee5d981249 [BE]: Enable RUFF PERF402 and apply fixes (#115505)
* Enable PERF402. Makes code more efficient and succinct by removing useless list copies that could be accomplished either via a list constructor or extend call. All test cases have noqa added since performance is not as sensitive in that folder.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/115505
Approved by: https://github.com/malfet
2023-12-20 18:01:24 +00:00
..
types Add support for float8_e4m3fnuz and _e5m2fnuz (#107586) 2023-11-15 15:01:11 +00:00
__init__.py
autograd.py Add 0dim Tensor overload for _foreach_div (#113688) 2023-11-15 20:59:32 +00:00
cpp.py [torchgen] Add support for optional tensor (#112938) 2023-11-06 20:03:05 +00:00
dispatcher.py Use presence of _symint in kernel name to generate symint sig or not (#84579) 2022-09-09 18:31:56 +00:00
functionalization.py Bump black version to 23.1.0 (#96578) 2023-03-15 06:27:59 +00:00
lazy.py Add support for torch.Generator type in TorchScript (#110413) 2023-11-21 23:07:21 +00:00
meta.py
native.py Reland 2 Many symintifications (#87604) (#87980) 2022-10-28 13:40:11 +00:00
python.py improve annotation device parameters where a device ordinal is allowed (#113647) 2023-11-17 14:41:22 +00:00
structured.py [BE]: Enable RUFF PERF402 and apply fixes (#115505) 2023-12-20 18:01:24 +00:00
translate.py [pytorch] add namespace for optTypeMetaToScalarType in codegen to avoid not declared when compile (#115623) 2023-12-13 00:59:01 +00:00
ufunc.py Back out "Revert D38984222: Don't introduce new overload for SymInt (#83628)" (#84173) 2022-08-29 18:01:07 +00:00
unboxing.py [BE]: remove unnecessary enumerate calls (#111690) 2023-10-20 23:20:29 +00:00