tf.contrib.data.reduce_dataset

View source on GitHub

Returns the result of reducing the dataset using reducer. (deprecated)

dataset A tf.data.Dataset object.
reducer A tf.data.experimental.Reducer object representing the reduce logic.

A nested structure of tf.Tensor objects, corresponding to the result of reducing dataset using reducer.

TypeError if dataset is not a tf.data.Dataset object.