-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix auto-registered torch.special operators (#979)
Background: This PR addresses a bug related to the handling of `torch.special` operators, discovered during the development of [PR #976](#976). `torch.special` operators has `__name__` in the format `special_opname`, requiring extraction of the actual `opname`. Similar issues occur with `torch.linalg` and `torch.fft` operators. In this PR: - Add function `_get_torch_function_name` to infer the python call name from the torch module and function - Add support for auto-registration of `torch.linalg` and `torch.fft` operators and the tests
- Loading branch information
Showing
3 changed files
with
132 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters