tf.compat.v1.train.maybe_shuffle_batch

View source on GitHub

Creates batches by randomly shuffling conditionally-enqueued tensors. (deprecated)

tf.compat.v1.train.maybe_shuffle_batch(
    tensors, batch_size, capacity, min_after_dequeue, keep_input, num_threads=1,
    seed=None, enqueue_many=False, shapes=None, allow_smaller_final_batch=False,
    shared_name=None, name=None
)

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.filter(...).shuffle(min_after_dequeue).batch(batch_size).

See docstring in shuffle_batch for more details.

Args:

Returns:

A list or dictionary of tensors with the types as tensors.

Raises:

Eager Compatibility

Input pipelines based on Queues are not supported when eager execution is enabled. Please use the tf.data API to ingest data under eager execution.