mirror of
https://github.com/luxfhe/docs.git
synced 2026-10-30 18:13:39 +00:00
1.4 KiB
1.4 KiB
module torus.ml.common.serialization.loaders
Load functions for serialization.
function loads
loads(content: Union[str, bytes]) → Any
Load any Torus ML object that provide a dump_dict method.
Arguments:
content(Union[str, bytes]): A serialized object.
Returns:
Any: The object itself.
function load
load(file: Union[IO[str], IO[bytes]])
Load any Torus ML object that provide a load_dict method.
Arguments:
file(Union[IO[str], IO[bytes]): The file containing the serialized object.
Returns:
Any: The object itself.