tf.contrib.data.reduce_dataset
Returns the result of reducing the dataset
using reducer
. (deprecated)
tf.contrib.data.reduce_dataset( dataset, reducer )
Args | |
---|---|
dataset | A tf.data.Dataset object. |
reducer | A tf.data.experimental.Reducer object representing the reduce logic. |
Returns | |
---|---|
A nested structure of tf.Tensor objects, corresponding to the result of reducing dataset using reducer . |
Raises | |
---|---|
TypeError | if dataset is not a tf.data.Dataset object. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/data/reduce_dataset