pytorch
ac8d2201 - Add `__torch_function__` override protocol supporting to some factory functions

Commit
2 years ago
Add `__torch_function__` override protocol supporting to some factory functions ## Motivation Add `__torch_function__` override protocol supporting to the factory functions in defined in pytorch_torch_funcions_manual.cpp. ## Solution By moving the PythonArg parser from the tensor_new.cpp and add the torch function handle dispatching for these API in `torch` name space. as_tensor sparse_coo_tensor _sparse_coo_tensor_unsafe sparce_csr_tensor _sparce_csr_tensor_unsafe. Pull Request resolved: https://github.com/pytorch/pytorch/pull/75639 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading