mirror of
https://github.com/luxfhe/docs.git
synced 2026-10-30 18:13:39 +00:00
1.3 KiB
1.3 KiB
module torus.ml.common.serialization.dumpers
Dump functions for serialization.
function dumps
dumps(obj: Any) → str
Dump any object as a string.
Arguments:
obj(Any): Object to dump.
Returns:
str: A string representation of the object.
function dump
dump(obj: Any, file: <class 'TextIO'>)
Dump any Torus ML object in a file.
Arguments:
obj(Any): The object to dump.file(TextIO): The file to dump the serialized object into.