Builds a queue out of a data generator.

Inherits From: SequenceEnqueuer

The provided generator can be finite in which case the class will throw a StopIteration exception.

generator a generator function which yields data
use_multiprocessing use multiprocessing if True, otherwise threading
random_seed Initial seed for workers, will be incremented by one for each worker.



View source

Creates a generator to extract data from the queue.

Skip the data if it is None.

The next element in the queue, i.e. a tuple (inputs, targets)