| 53 | |
| 54 | # See testTorchSaveError in test/cpp/jit/tests.h for usage |
| 55 | class 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 | |
| 66 | class TorchSaveJitStream_CUDA(FileSetup): |
| 67 | path = 'saved_stream_model.pt' |
no outgoing calls
no test coverage detected
searching dependent graphs…