viable/strict/1788457839: [dynamo] Migrate DispatchKeySetVariable methods to tp_methods (#195168)
- PyTorch: 476 events in the last 90 days
- PyTorch: 471th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1788450620
What happened
Summary Migrate DispatchKeySetVariable off a call_method if-chain onto declarative tp_methods , as in #195165 . has / highestPriorityTypeId are now Method handlers. has still constant-folds only when the arguments are constant; otherwise it returns None and falls through. Part of #195165 (does not close the umbrella). Test plan python test/dynamo/test_python_dispatcher.py PythonDispatcherTests (6 passed) python test…
Summary assembled by rule from the sources below