class chainer.serializers.HDF5Deserializer(group, strict=True)[source]

Deserializer for HDF5 format.

This is the standard deserializer in Chainer. This deserializer can be used to read an object serialized by HDF5Serializer.

  • group (h5py.Group) – The group that the deserialization starts from.
  • strict (bool) – If True, the deserializer raises an error when an expected value is not found in the given HDF5 file. Otherwise, it ignores the value and skip deserialization.


__call__(key, value)[source]

Loads an object from this deserializer.

This is equivalent to obj.serialize(self).

Parameters:obj – Target object to be serialized.