Spec-Zone.ru › TensorFlow 2.3

tf.raw_ops.GroupByReducerDataset

Создаёт набор данных, вычисляющий группировку по input_dataset.

Просмотр псевдонимов

Псевдонимы для миграции

См. Руководство по миграции для получения более подробной информации.

tf.compat.v1.raw_ops.GroupByReducerDataset

tf.raw_ops.GroupByReducerDataset(
    input_dataset, key_func_other_arguments, init_func_other_arguments,
    reduce_func_other_arguments, finalize_func_other_arguments, key_func, init_func,
    reduce_func, finalize_func, output_types, output_shapes, name=None
)

Создаёт набор данных, вычисляющий группировку по input_dataset.

Аргументы
input_dataset A Tensor типа variant. A variant tensor представляющий входной набор данных.
key_func_other_arguments A list of Tensor объектов. A list of tensors, typically values that were captured when building a closure for key_func.
init_func_other_arguments A list of Tensor объектов. A list of tensors, typically values that were captured when building a closure for init_func.
reduce_func_other_arguments A list of Tensor объектов. A list of tensors, typically values that were captured when building a closure for reduce_func.
finalize_func_other_arguments A list of Tensor объектов. A list of tensors, typically values that were captured when building a closure for finalize_func.
key_func Функция, помеченная @Defun. Функция, сопоставляющая элемент из input_dataset, конкатенированный с key_func_other_arguments, с скалярным значением типа DT_INT64.
init_func Функция, помеченная @Defun. Функция, сопоставляющая ключ типа DT_INT64, конкатенированный с init_func_other_arguments, с начальным состоянием редуктора.
reduce_func Функция, помеченная @Defun. Функция, сопоставляющая текущее состояние редуктора и элемент из input_dataset, конкатенированный с reduce_func_other_arguments, с новым состоянием редуктора.
finalize_func Функция, помеченная @Defun. Функция, сопоставляющая конечное состояние редуктора с элементом вывода.
output_types Список tf.DTypes длиной >= 1.
output_shapes Список форм (каждая — tf.TensorShape или список ints) длиной >= 1.
name Имя операции (необязательно).
Возвращаемые значения
A Tensor типа variant.

© 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.3/api_docs/python/tf/raw_ops/GroupByReducerDataset

Spec-Zone.ru

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