pytorch
18277137 - make torch.load() aware of import path changes: torch.tensor -> torch._tensor (#53139)

Commit
3 years ago
make torch.load() aware of import path changes: torch.tensor -> torch._tensor (#53139) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53139 ghstack-source-id: 123090847 Test Plan: Sandcastle Also explicitly tests that this test passes after incorporating the changes from D26656767, and adding a `torch.tensor` -> `torch._tensor` mapping to the `load_module_mapping` dict: `buck test mode/dev //pandora/utils/tests:manifold_utils_tests -- --exact 'pandora/utils/tests:manifold_utils_tests - test_load_dataset_valid_dir (pandora.utils.tests.manifold_utils_tests.TestManifoldUtils)'` With just D26656767, that test fails. With D26656767 + the changes in this diff, that test passes. Reviewed By: ezyang Differential Revision: D26760600 fbshipit-source-id: cb16493b858a358acf468d755740aa272ae9d363
Author
Parents
Loading