Save the date! Google I/O returns May 18-20 Register now

View source on GitHub

A batching and padding transformation that omits the final small batch. (deprecated)

Like, this transformation combines consecutive elements of this dataset into batches. However, if the batch size does not evenly divide the input dataset size, this transformation will drop the final smaller element.

See for more details.

batch_size A tf.int64 scalar tf.Tensor, representing the number of consecutive elements of this dataset to combine in a single batch.
padded_shapes A nested structure of tf.TensorShape or tf.int64 vector tensor-like objects. See for details.
padding_values (Optional.) A nested structure of scalar-shaped tf.Tensor. See for details.

A Dataset transformation function, which can be passed to