TensorPlay
API reference
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.serialization API

Functions 21

#

convert_model

functionFull reference ↗
tensorplay.serialization.convert_model(model_dir, output_dir=None, **kwargs)

Convert a model directory or a supported checkpoint into MEGA.

#

convert_to_mega

functionFull reference ↗
tensorplay.serialization.convert_to_mega(model_dir, output_dir=None, **kwargs)[source]

Convert a model directory or a supported checkpoint into MEGA.

#

resolve_map_location

functionFull reference ↗
tensorplay.serialization.resolve_map_location(map_location: Any, location: str, nbytes: int = 0)[source]

Resolve one saved storage location.

None means that the saved location should be used by the caller. A callable may return a device, a destination tensor, or None.

#

save

functionFull reference ↗
tensorplay.serialization.save(obj: Any, f, pickle_module=<module 'pickle' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/pickle.py'>, pickle_protocol: int = 2, _use_new_zipfile_serialization: bool = True, _disable_byteorder_record: bool = False, *, metadata: Mapping[str, ~typing.Any] | None=None, alignment: int = 4096, checksum: str = 'crc32') → None[source]

Classes 4

Attributes 1

#

StorageType

attributeFull reference ↗
tensorplay.serialization.StorageType

alias of _StorageType

On this page

Ask DeepWiki