chainer.training.extensions.snapshot_writers.ThreadQueueWriter¶
-
class
chainer.training.extensions.snapshot_writers.ThreadQueueWriter(savefun=<function save_npz>, task=None)[source]¶ Snapshot writer that uses a thread queue.
This class creates a thread and a queue by
threadingandqueuemodules respectively. The thread will be a consumer of the queue, and the main thread will be a producer of the queue.Methods
-
__call__(filename, outdir, target)[source]¶ Invokes the actual snapshot function.
This method is invoked by a
Snapshotobject every time it takes a snapshot.
-