functionalization: add support for zero_()

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

Approved by: https://github.com/albanD
This commit is contained in:
Brian Hirsh
2022-04-25 12:01:17 -07:00
committed by PyTorch MergeBot
parent c8fd1bbc11
commit 7d44b3675b
11 changed files with 63 additions and 23 deletions

View File

@ -151,6 +151,7 @@ _SKIP_PYTHON_BINDINGS = [
"_has_same_storage_numel", # used for forward AD internals
"_reshape_alias",
"replace_", # only used by the functionalization pass, doesn't need to be exposed to python
"zero", # only used by the functionalization pass, doesn't need to be exposed to python
]
SKIP_PYTHON_BINDINGS = list(