tf.train.maybe_batch

tf.train.maybe_batch

tf.train.maybe_batch

maybe_batch(
    tensors,
    keep_input,
    batch_size,
    num_threads=1,
    capacity=32,
    enqueue_many=False,
    shapes=None,
    dynamic_pad=False,
    allow_smaller_final_batch=False,
    shared_name=None,
    name=None
)

Defined in tensorflow/python/training/input.py.

See the guide: Inputs and Readers > Input p