Use classmethods for overrides (#64841)
authoralbanD <desmaison.alban@gmail.com>
Fri, 17 Sep 2021 15:01:33 +0000 (08:01 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 15:32:49 +0000 (08:32 -0700)
commit473e55d5b21c7cd2e02b43281d039329d6eba926
treeaeb1c6fc6064a1e9a119b4db18946f83c80624bf
parenta95fabfecbab9f43f87dd13ae88ffd29cafd7c45
Use classmethods for overrides (#64841)

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

Test Plan: Imported from OSS

Reviewed By: heitorschueroff

Differential Revision: D30991424

Pulled By: albanD

fbshipit-source-id: 551e2119768f3a4292713f3bfa83930f5506adbd
benchmarks/overrides_benchmark/common.py
docs/source/notes/extending.rst
test/test_overrides.py
torch/distributed/_sharded_tensor/api.py
torch/overrides.py