torch_save: Saves an object to a disk file.

View source: R/save.R

torch_saveR Documentation

Saves an object to a disk file.

Description

This function is experimental, don't use for long term storage.

Usage

torch_save(obj, path, ..., compress = TRUE)

Arguments

obj

the saved object

path

a connection or the name of the file to save.

...

not currently used.

compress

a logical specifying whether saving to a named file is to use "gzip" compression, or one of "gzip", "bzip2" or "xz" to indicate the type of compression to be used. Ignored if file is a connection.

See Also

Other torch_save: torch_load(), torch_serialize()


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