tf.raw_ops.CollectiveGather
Взаимно накапливает несколько тензоров одинакового типа и формы.
tf.raw_ops.CollectiveGather(
input, group_size, group_key, instance_key, shape,
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. |
shape | A tf.TensorShape или список 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.4/api_docs/python/tf/raw_ops/CollectiveGather