chainer.iterators
Chainer provides some iterators that implement typical strategies to create mini-batches by iterating over datasets. ~chainer.iterators.SerialIterator
is the simplest one, which extracts mini-batches in the main thread. ~chainer.iterators.MultiprocessIterator
and ~chainer.iterators.MultithreadIterator
are parallelized versions of ~chainer.iterators.SerialIterator
. They maintain worker subprocesses and subthreads, respectively, to load the next mini-batch in parallel.
chainer.iterators.SerialIterator chainer.iterators.MultiprocessIterator chainer.iterators.MultithreadIterator chainer.iterators.DaliIterator
An Iterator iterates over a dataset according to an order represented by a 1-D array of indices. Order samplers are callables that are used by those iterators to generate this array.
chainer.iterators.OrderSampler chainer.iterators.ShuffleOrderSampler