tf.raw_ops.CollectiveReduce
Взаимно уменьшает несколько тензоров одинакового типа и формы.
tf.raw_ops.CollectiveReduce(
input, group_size, group_key, instance_key, merge_op, final_op, subdiv_offsets,
wait_for=[], communication_hint='auto', timeout_seconds=0, name=None
)
| Аргументы | |
|---|---|
input | A Tensor. Должен быть одним из следующих типов: float32, half, float64, int32, int64. |
group_size | An int. |
group_key | An int. |
instance_key | An int. |
merge_op | A string из: "Min", "Max", "Mul", "Add". |
final_op | A string из: "Id", "Div". |
subdiv_offsets | Список ints. |
wait_for | Необязательный список ints. По умолчанию []. |
communication_hint | Необязательный string. По умолчанию "auto". |
timeout_seconds | Необязательный float. По умолчанию 0. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A Tensor. Имеет тот же тип, что и input. |
© 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/CollectiveReduce