chainer.serializers.load_npz

chainer.serializers.load_npz(filename, obj, path='')

Loads an object from the file in NPZ format.

This is a short-cut function to load from an .npz file that contains only one object.

Parameters:
  • filename (str) – Name of the file to be loaded.
  • obj – Object to be deserialized. It must support serialization protocol.
  • path – The path in the hierarchy of the serialized data under which the data is to be loaded. The default behavior (blank) will load all data under the root path.