tf.keras.utils.OrderedEnqueuer

Builds a Enqueuer from a Sequence.

Inherits From: SequenceEnqueuer

sequence A tf.keras.utils.data_utils.Sequence object.
use_multiprocessing use multiprocessing if True, otherwise threading
shuffle whether to shuffle the data at the beginning of each epoch

Methods

get

View source

Creates a generator to extract data from the queue.

Skip the data if it is None.

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

is_running

View source

start

View source

Starts the handler's workers.

Args
workers Number of workers.
max_queue_size