zipfile-based file format. "torch.load" still retains the ability
     to load files in the old format. If for any reason you want
     "torch.save" to use the old format, pass the kwarg
     "_use_new_zipfile_serialization=False".
-[ Example ]-



Save to file
x = torch.tensor([0, 1, 2, 3, 4])
torch.save(x, 'tensor.pt')
Save to io.BytesIO buffer
buffer = io.BytesIO()
torch.save(x, buffer)


