chainer.serializers.load_npz(file, obj, path='', strict=True)[source]
Parameters: file (str or file-like) – File to be loaded. obj – Object to be deserialized. It must support serialization protocol. path (str) – 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. strict (bool) – If True, the deserializer raises an error when an expected value is not found in the given NPZ file. Otherwise, it ignores the value and skip deserialization.