chainer.training.extensions.snapshot_writers.SimpleWriter¶
- class chainer.training.extensions.snapshot_writers.SimpleWriter(savefun=<function save_npz>, **kwds)[source]¶
The most simple snapshot writer.
This class just passes the arguments to the actual saving function.
- Parameters
savefun – Callable object. It takes three arguments: the output file path, the serialized dictionary object, and the optional keyword arguments.
kwds – Keyword arguments for the
savefun
.
Methods
- __call__(filename, outdir, target)[source]¶
Invokes the actual snapshot function.
This method is invoked by a
Snapshot
object every time it takes a snapshot.
- finalize()[source]¶
Finalizes the wirter.
Like extensions in
Trainer
, this method is invoked at the end of the training.
- __eq__(value, /)¶
Return self==value.
- __ne__(value, /)¶
Return self!=value.
- __lt__(value, /)¶
Return self<value.
- __le__(value, /)¶
Return self<=value.
- __gt__(value, /)¶
Return self>value.
- __ge__(value, /)¶
Return self>=value.