{ }
View source on GitHub |
Conditionally creates batches of tensors based on keep_input
. (deprecated)
tf.compat.v1.train.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
)
See docstring in batch
for more details.
Returns | |
---|---|
A list or dictionary of tensors with the same types as tensors .
|
Raises | |
---|---|
ValueError
|
If the shapes are not specified, and cannot be
inferred from the elements of tensors .
|