tf.raw_ops.CollectiveReduceV3
Взаимно уменьшает несколько тензоров одинакового типа и формы.
tf.raw_ops.CollectiveReduceV3(
input,
communicator,
group_assignment,
reduction,
timeout_seconds=0,
name=None
)
| Аргументы | |
|---|---|
input | A Tensor. Должен быть одним из следующих типов: bfloat16, float32, half, float64, int32, int64. |
communicator | A Tensor типа resource. |
group_assignment | A Tensor типа int32. |
reduction | A string из: "Min", "Max", "Mul", "Add". |
timeout_seconds | Необязательный float. По умолчанию 0. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor. Имеет тот же тип, что и input. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/raw_ops/CollectiveReduceV3