Remove legacy constructor calls from pytorch codebase. (#54142)
Summary:
Follow up from https://github.com/pytorch/pytorch/issues/53889
Related to https://github.com/pytorch/pytorch/issues/47112
Removing every occurrence of the legacy constructor call present in PyTorch at:
- _docs_
- _benchmarks_
- _test_
- _caffe2_
- _CONTRIBUTING.md_
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54142
Reviewed By: ngimel
Differential Revision: D27699450
Pulled By: mruberry
fbshipit-source-id: 530aa3f5746cc8bc1407d5d51b2bbd8075e30546