torch.save
torch.save(obj, f, pickle_module=pickle, pickle_protocol=DEFAULT_PROTOCOL, _use_new_zipfile_serialization=True)
Saves an object to a disk file.
See also: Saving and loading tensors
Parameters:
      * obj (object) -- saved object
  * **f** (*Union**[**str**, **PathLike**, **BinaryIO**,
    **IO**[**bytes**]**]*) -- a file-like object (has to implement
    write and flush) or a string or os.PathLike object containing
    a file name

  * **pickle_module** (*Any*) -- module used for pickling metadata
    and objects

  * **pickle_protocol** (*int*) -- can be specified to override
    the default protocol

Note:
 A common PyTorch convention is to save tensors using .pt file
 extension.

Note:
 PyTorch preserves storage sharing across serialization. See
 Saving and loading tensors preserves views for more details.

Note:
 The 1.6 release of PyTorch switched "torch.save" to use a new
