Serializers¶
Serialization in NumPy NPZ format¶
NumPy serializers can be used in arbitrary environments that Chainer runs with.
It consists of asymmetric serializer/deserializer due to the fact that numpy.savez()
does not support online serialization.
Therefore, serialization requires two-step manipulation: first packing the objects into a flat dictionary, and then serializing it into npz format.
Serializer for dictionary. |
|
Deserializer for NPZ format. |
|
Saves an object to the file in NPZ format. |
|
Loads an object from the file in NPZ format. |
Serialization in HDF5 format¶
Serializer for HDF5 format. |
|
Deserializer for HDF5 format. |
|
Saves an object to the file in HDF5 format. |
|
Loads an object from the file in HDF5 format. |
Serializers base classes¶
Base class of all serializers. |
|
Abstract base class of all serializers and deserializers. |
|
Base class of all deserializers. |