View source on GitHub
|
Create batches by randomly shuffling conditionally-enqueued tensors. (deprecated)
tf.compat.v1.train.maybe_shuffle_batch_join(
tensors_list,
batch_size,
capacity,
min_after_dequeue,
keep_input,
seed=None,
enqueue_many=False,
shapes=None,
allow_smaller_final_batch=False,
shared_name=None,
name=None
)
See docstring in shuffle_batch_join for more details.
Args |
|---|
tensors_list
batch_size
capacity
min_after_dequeue
keep_input
bool Tensor. This tensor controls whether the input is
added to the queue or not. If it is a scalar and evaluates True, then
tensors are all added to the queue. If it is a vector and enqueue_many
is True, then each example is added to the queue only if the
corresponding value in keep_input is True. This tensor essentially
acts as a filtering mechanism.
seed
enqueue_many
tensor_list_list is a single
example.
shapes
tensors_list[i].
allow_smaller_final_batch
True, allow the final
batch to be smaller if there are insufficient items left in the queue.
shared_name
name
Returns | |
|---|---|
A list or dictionary of tensors with the same number and types as
tensors_list[i].
|
Raises |
|---|
ValueError
shapes are not specified, and cannot be
inferred from the elements of tensors_list.
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.
View source on GitHub