tensorflow::ops::Merge
#include <control_flow_ops.h>
Передаёт значение доступного тензора из inputs в output.
Краткое описание
Merge ожидает, пока хотя бы один из тензоров в inputs станет доступен. Обычно он используется вместе с Switch для реализации ветвления.
Merge передаёт первый ставший доступным тензор в output и устанавливает value_index равным его индексу в inputs.
Аргументы:
- scope: объект Scope
- inputs: Входные тензоры, ровно один из которых станет доступен.
Возвращает:
-
Outputoutput: Будет установлен в значение доступного входного тензора. -
Outputvalue_index: Индекс выбранного входного тензора вinputs.
| Конструкторы и деструкторы | |
|---|---|
Merge(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
value_index | |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
value_index
::tensorflow::Output value_index
Общедоступные функции
Merge
Merge( const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs )
© 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/api_docs/cc/class/tensorflow/ops/merge