Learn R Programming

torch (version 0.14.2)

torch_serialize: Serialize a torch object returning a raw object

Description

It's just a wraper around torch_save().

Usage

torch_serialize(obj, ...)

Value

A raw vector containing the serialized object. Can be reloaded using torch_load().

Arguments

obj

the saved object

...

Additional arguments passed to torch_save(). obj and path are not accepted as they are set by torch_serialize().

See Also

Other torch_save: torch_load(), torch_save()