A function mapping a nested structure of tensors to another
nested structure of tensors.
A tf.int64 scalar tf.Tensor, representing the number of
consecutive elements of this dataset to combine in a single batch.
(Optional.) A tf.int64 scalar tf.Tensor,
representing the number of batches to create in parallel. On one hand,
higher values can help mitigate the effect of stragglers. On the other
hand, higher values can increase contention if CPU is scarce.
(Optional.) A tf.bool scalar tf.Tensor, representing
whether the last batch should be dropped in case its size is smaller than
desired; the default behavior is not to drop the smaller batch.
(Optional.) A tf.int32 scalar tf.Tensor,
representing the number of elements to process in parallel. If not
specified, batch_size * num_parallel_batches elements will be processed
in parallel. If the value tf.data.AUTOTUNE is used, then
the number of parallel calls is set dynamically based on available CPU.