chainer.serializers.load_hdf5

chainer.serializers.load_hdf5(filename, obj)

Loads an object from the file in HDF5 format.

This is a short-cut function to load from an HDF5 file that contains only one object. If you want to load multiple objects from one HDF5 file, use HDF5Deserializer directly by passing appropriate h5py.Group objects.

Parameters:
  • filename (str) – Name of the file to be loaded.
  • obj – Object to be deserialized. It must support serialization protocol.