MCPcopy Create free account
hub / github.com/pytorch/pytorch / UnpicklerWrapper

Class UnpicklerWrapper

torch/serialization.py:1065–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063 restore_location = _get_restore_location(map_location)
1064
1065 class UnpicklerWrapper(pickle_module.Unpickler): # type: ignore[name-defined]
1066
1067 def find_class(self, mod_name, name):
1068 if type(name) is str and 'Storage' in name:
1069 try:
1070 return StorageType(name)
1071 except KeyError:
1072 pass
1073 return super().find_class(mod_name, name)
1074
1075 def _check_container_source(container_type, source_file, original_source):
1076 try:

Callers 3

legacy_loadFunction · 0.85
_legacy_loadFunction · 0.85
_loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…