torch_load: Loads a saved object

View source: R/save.R

torch_loadR Documentation

Loads a saved object

Description

Loads a saved object

Usage

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()


torch documentation built on May 29, 2024, 9:54 a.m.