torch_serialize: Serialize a torch object returning a raw object

View source: R/save.R

torch_serializeR Documentation

Serialize a torch object returning a raw object

Description

It's just a wraper around torch_save().

Usage

torch_serialize(obj, ...)

Arguments

obj

the saved object

...

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

Value

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

See Also

Other torch_save: torch_load(), torch_save()


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