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

Method load

test/test_serialization.py:259–260  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

257 def test_pickle_module(self):
258 class ThrowingUnpickler(pickle.Unpickler):
259 def load(self, *args, **kwargs):
260 raise RuntimeError("rumpelstiltskin")
261
262 class ThrowingModule:
263 Unpickler = ThrowingUnpickler

Calls

no outgoing calls

Tested by

no test coverage detected