torch.save — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.save. Saves an object to a disk file. f – a file-like object (has to implement write and flush) or a string or os.PathLike object containing a file name. A common PyTorch convention is to save tensors using .pt file extension. PyTorch preserves storage sharing across serialization.