pytorch/torch/package
Tristan Rice 5f7b92024f torch/package: add fix for implicit numpy dependency (#78979)
Summary:
This adds a workaround so that you can call `.numpy()` on models loaded via torch.package. Torch implicitly imports numpy when you make that call and it can't be tracked by normal dependencies since it's from C++.

https://github.com/pytorch/MultiPy/issues/46

Test Plan: CI

Reviewed By: PaliC

Differential Revision: D36915129

Pull Request resolved: https://github.com/pytorch/pytorch/pull/78979
Approved by: https://github.com/PaliC
2022-06-08 17:07:00 +00:00
..
analyze [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
__init__.py Revert D35423079: [pkg] add generic ZipFile Reader/Writer 2022-04-07 13:33:47 +00:00
_digraph.py [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
_directory_reader.py Revert D35423079: [pkg] add generic ZipFile Reader/Writer 2022-04-07 13:33:47 +00:00
_importlib.py [pkg] opt into autoformat 2021-05-21 15:03:52 -07:00
_mangling.py [package] Make it possible to re-save a PackageImporter module (#65101) 2021-09-17 16:25:11 -07:00
_mock.py
_package_pickler.py [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
_package_unpickler.py [lint] upgrade mypy to latest version 2022-05-03 20:51:34 +00:00
_stdlib.py
file_structure_representation.py [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
find_file_dependencies.py [package] ignore dunder import errors (#61148) 2021-07-09 15:27:08 -07:00
glob_group.py [pkg] opt into autoformat 2021-05-21 15:03:52 -07:00
importer.py [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
mangling.md
package_exporter.py [codemod][usort] apply import merging for fbcode (1 of 11) (#78973) 2022-06-06 23:44:28 +00:00
package_importer.py torch/package: add fix for implicit numpy dependency (#78979) 2022-06-08 17:07:00 +00:00