tf.raw_ops.CollectiveGatherV2
Взаимно накапливает несколько тензоров одинакового типа и формы.
tf.raw_ops.CollectiveGatherV2(
input,
group_size,
group_key,
instance_key,
ordering_token,
communication_hint='auto',
timeout_seconds=0,
name=None
)
| Аргументы | |
|---|---|
input | A Tensor. Должен быть одним из следующих типов: float32, half, float64, int32, int64. |
group_size | A Tensor типа int32. |
group_key | A Tensor типа int32. |
instance_key | A Tensor типа int32. |
ordering_token | Список Tensor объектов типа resource. |
communication_hint | Необязательный string. По умолчанию "auto". |
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/CollectiveGatherV2