-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Closed
Labels
module: __torch_dispatch__module: __torch_function__triagedThis 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
Description
🐛 Describe the bug
no_dispatch disables both mode and subclass (because it excludes the Python dispatch key, which controls for both)
_C.DisableTorchFunction only disables subclass (this behavior is explicitly tested for in test_mode_notimplemented_loop
and test_disable_subclass_not_mode)
Probably easiest fix is to rename DisableTorchFunction to DisableTorchFunctionSubclass and then add a mode disabler.
Versions
master
cc @hameerabbasi @rgommers @peterbell10 @Chillee @zou3519 @albanD @samdow
Metadata
Metadata
Assignees
Labels
module: __torch_dispatch__module: __torch_function__triagedThis 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