Learn R Programming

luz (version 0.5.0)

luz_save: Saves luz objects to disk

Description

Allows saving luz fitted models to the disk. Objects can be loaded back with luz_load().

Usage

luz_save(obj, path, ...)

Arguments

obj

an object of class 'luz_module_fitted' as returned by fit.luz_module_generator().

path

path in file system to the object.

...

currently unused.

Warning

The ctx is naively serialized. Ie, we only use saveRDS() to serialize it. Don't expect luz_save to work correctly if you have unserializable objects in the ctx like torch_tensors and external pointers in general.

See Also

Other luz_save: luz_load()