-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Some torch.Tensor operators don’t return NotImplemented for invalid inputs #57719
Copy link
Copy link
Closed
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: pybindRelated to our Python bindings / interactions with other Python librariesRelated to our Python bindings / interactions with other Python librariesmodule: python array apiIssues related to the Python Array APIIssues related to the Python Array APItriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: pybindRelated to our Python bindings / interactions with other Python librariesRelated to our Python bindings / interactions with other Python librariesmodule: python array apiIssues related to the Python Array APIIssues related to the Python Array APItriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Bug
Some torch.Tensor operators
NotImplementedand raiseTypeError, or(cc/ @mruberry, @emcastillo, @kmaehashi)
To Reproduce
torch.Tensor.__pow__returnsNotImplementedandA.__rpow__is calledThe expected behavior is:
torch.Tensor.__rand__is not registeredThe expected behavior is:
Environment
Additional context
This issue is found on #56997.
cc @mruberry @rgommers @pmeier