torch_load function

Loads a saved object

Loads a saved object

torch_load(path, device = "cpu")

Arguments

  • path: a path to the saved object
  • device: a device to load tensors to. By default we load to the cpu but you can also load them to any cuda device. If NULL then the device where the tensor has been saved will be reused.

See Also

Other torch_save: torch_save(), torch_serialize()

  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14