pytorch/torchgen/api
cyy ecbe82b9ce Change ATEN generator argument type to const std::optional<Generator>& (#120076)
This PR proposes to use std::optional<Generator>& for underlying functions to avoid unnecessary copy and move operations. The torchgen code was changed to generate the new type.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/120076
Approved by: https://github.com/malfet
2024-03-22 03:49:31 +00:00
..
types Change ATEN generator argument type to const std::optional<Generator>& (#120076) 2024-03-22 03:49:31 +00:00
__init__.py
autograd.py Add 0dim Tensor overload for _foreach_div (#113688) 2023-11-15 20:59:32 +00:00
cpp.py Change ATEN generator argument type to const std::optional<Generator>& (#120076) 2024-03-22 03:49:31 +00:00
dispatcher.py
functionalization.py Use view name instead of view_copy name for functional inverses (#117056) 2024-01-10 00:52:36 +00:00
lazy.py [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
meta.py
native.py
python.py Proper view support for jagged layout NestedTensor (#113279) 2024-03-22 02:12:36 +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
unboxing.py [BE]: remove unnecessary enumerate calls (#111690) 2023-10-20 23:20:29 +00:00