tensorflow::ops::Merge
#include <control_flow_ops.h>
Передает значение доступного тензора из inputs в output.
Сводка
Merge ожидает, пока хотя бы один из тензоров в inputs станет доступен. Обычно это используется вместе с Switch для реализации ветвления.
Merge передает первый ставший доступным тензор в output и устанавливает value_index в его индекс в inputs.
Args:
- scope: Объект Scope
- inputs: Входные тензоры, ровно один из которых станет доступным.
Returns:
-
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