torch_serialize function

Serialize a torch object returning a raw object

Serialize a torch object returning a raw object

It's just a wraper around torch_save().

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().

Returns

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

See Also

Other torch_save: torch_load(), torch_save()

  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14