chainer.testing.save_and_load_npz

chainer.testing.save_and_load_npz(src, dst)[source]

Saves src to an NPZ file and loads it to dst.

This is a short cut of save_and_load() using NPZ de/serializers.

Parameters
  • src – An object to save.

  • dst – An object to load to.