nv_save() saves a named list of arrays to a file in the
safetensors format, and
nv_read() loads them back. The data type and shape of each array are
restored.
Arguments
- arrays
(named
listofAnvlArray)
Named list of arrays. Names must be unique.- path
(
character(1))
File path to write to or read from.- device
(
NULL|character(1)|PJRTDevice)
The device on which to place the loaded arrays ("cpu","cuda", ...) when the active backend is"pjrt", defaulting todefault_device().
Details
These are convenience wrappers around nv_serialize() and
nv_unserialize() that open and close a file connection.