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
threading
andqueue
modules 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
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__
()¶ Return self==value.
-
__ne__
()¶ Return self!=value.
-
__lt__
()¶ Return self<value.
-
__le__
()¶ Return self<=value.
-
__gt__
()¶ Return self>value.
-
__ge__
()¶ Return self>=value.
-