TensorFlow 2.0 Beta is available Learn more

tf.data.experimental.Reducer

TensorFlow 2.0 version View source on GitHub

Class Reducer

A reducer is used for reducing a set of elements.

Aliases:

  • Class tf.compat.v1.data.experimental.Reducer
  • Class tf.compat.v2.data.experimental.Reducer
  • Class tf.data.experimental.Reducer

A reducer is represented as a tuple of the three functions: 1) initialization function: key => initial state 2) reduce function: (old state, input) => new state 3) finalization function: state => result

__init__

View source

__init__(
    init_func,
    reduce_func,
    finalize_func
)

Properties

finalize_func

init_func

reduce_func