Iterator examplesΒΆ

Chainer provides some iterators that implement typical strategies to create mini-batches by iterating over datasets. SerialIterator is the simplest one, which extract mini batches in the main thread. MultiprocessIterator is a parallelized version of SerialIterator. It maintains worker subprocesses to load the next mini-batch in parallel.

chainer.iterators.SerialIterator Dataset iterator that serially reads the examples.
chainer.iterators.MultiprocessIterator Dataset iterator that loads examples in parallel.