pytorch/torch/package
Michael Suo 003a240e68 [package] use WeakValueDictionary for global imported module registry (#51666)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51666

This ensures the modules will get properly unloaded when all references
to them die

Test Plan: Imported from OSS

Reviewed By: Lilyjjo

Differential Revision: D26232574

Pulled By: suo

fbshipit-source-id: a9889965aa35ba2f6cbbfbdd13e02357cc706cab
2021-02-04 09:42:18 -08:00
..
__init__.py
_custom_import_pickler.py [package] mangle imported module names (#50049) 2021-01-13 16:32:36 -08:00
_importlib.py
_mangling.py [package] mangle imported module names (#50049) 2021-01-13 16:32:36 -08:00
_mock_zipreader.py
_mock.py [package] better error message when unpickling a mocked obj (#50159) 2021-01-12 14:11:32 -08:00
exporter.py [packaging] add support for BytesIO (#50838) 2021-01-22 08:33:39 -08:00
find_file_dependencies.py
importer.py [package] use WeakValueDictionary for global imported module registry (#51666) 2021-02-04 09:42:18 -08:00
mangling.md [package] mangle imported module names (#50049) 2021-01-13 16:32:36 -08:00