Filter out _disabled_torch_function_impl from handle_torch_function (#64689)
authorEdward Yang <ezyang@fb.com>
Thu, 9 Sep 2021 14:17:26 +0000 (07:17 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Sep 2021 14:29:09 +0000 (07:29 -0700)
commitd4b1016850170deba98c026d1c8494de821b91c7
tree3ca40a0d4ef0efbbcec23d3e3ac8c0d04db8d595
parent239366c9c227ffbe98d28cd67596f1c5ba37ac5a
Filter out _disabled_torch_function_impl from handle_torch_function (#64689)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64689

This brings it in line with the C++ implementation.

Fixes https://github.com/pytorch/pytorch/issues/64687

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS

Reviewed By: albanD

Differential Revision: D30816215

Pulled By: ezyang

fbshipit-source-id: ed36af6c35467ae678d9548197efd97c36d38dec
test/test_overrides.py
torch/overrides.py