-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[torchlib] Do not register rsub (#1907)
Remove rsub since it is handled by decomp, and torch doesn't have a type promotion rule for rsub so we use sub instead. Tested with ```python import torch class Model(torch.nn.Module): def forward(self, x): return 1 - x ep = torch.export.export(Model(), (torch.tensor(1),)) print(ep) program = torch.onnx.export(Model(), (torch.tensor(1),), dynamo=True) print(program) ```
- Loading branch information
1 parent
a4f3bcb
commit 1544ee1
Showing
2 changed files
with
2 additions
and
11 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