Spec-Zone.ru › TensorFlow 2.4

tf.data.experimental.Reducer

View source on GitHub

A reducer is used for reducing a set of elements.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.data.experimental.Reducer

tf.data.experimental.Reducer(
    init_func, reduce_func, finalize_func
)

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

Attributes
finalize_func
init_func
reduce_func

© 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/r2.4/api_docs/python/tf/data/experimental/Reducer

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API