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

Class TorchSaveError

test/cpp/jit/tests_setup.py:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54# See testTorchSaveError in test/cpp/jit/tests.h for usage
55class TorchSaveError(FileSetup):
56 path = 'eager_value.pt'
57
58 def setup(self):
59 ones = torch.ones(2, 2)
60 twos = torch.ones(3, 5) * 2
61
62 value = (ones, twos)
63
64 torch.save(value, self.path, _use_new_zipfile_serialization=False)
65
66class TorchSaveJitStream_CUDA(FileSetup):
67 path = 'saved_stream_model.pt'

Callers 1

tests_setup.pyFile · 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…