Spec-Zone.ru › TensorFlow C++

tensorflow::ops::Merge

#include <control_flow_ops.h>

Передаёт значение доступного тензора из inputs в output.

Краткое описание

Merge ожидает, пока хотя бы один из тензоров в inputs станет доступен. Обычно он используется вместе с Switch для реализации ветвления.

Merge передаёт первый ставший доступным тензор в output и устанавливает value_index равным его индексу в inputs.

Аргументы:

  • scope: объект Scope
  • inputs: Входные тензоры, ровно один из которых станет доступен.

Возвращает:

  • Output output: Будет установлен в значение доступного входного тензора.
  • Output value_index: Индекс выбранного входного тензора в inputs.
Конструкторы и деструкторы
Merge(const ::tensorflow::Scope & scope, ::tensorflow::InputList inputs)
Общедоступные атрибуты
operation
Operation
output
::tensorflow::Output
value_index
::tensorflow::Output

Общедоступные атрибуты

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API