tensorflow::ops::TensorArrayGather
#include <data_flow_ops.h>
Gather specific elements from the TensorArray into output value.
Краткое описание
Все элементы, выбранные по indices, должны иметь одинаковую форму.
Аргументы:
- scope: Объект Scope
- handle: Указатель на TensorArray.
- indices: Позиции в TensorArray, из которых необходимо считать элементы тензора.
- flow_in: Скаляр с плавающей точкой, обеспечивающий правильную цепочку операций.
- dtype: Тип возвращаемого элемента.
Необязательные атрибуты (см. Attrs):
- element_shape: Ожидаемая форма элемента, если она известна. Используется для проверки форм элементов TensorArray. Если эта форма не полностью задана, сбор данных из нулевых TensorArray — ошибка.
Возвращает:
-
Output: Все элементы TensorArray, конкатенированные вдоль новой оси (новая размерность 0).
| Конструкторы и деструкторы | |
|---|---|
TensorArrayGather(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input indices, ::tensorflow::Input flow_in, DataType dtype) | |
TensorArrayGather(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input indices, ::tensorflow::Input flow_in, DataType dtype, const TensorArrayGather::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
value | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
ElementShape(PartialTensorShape x) | |
| Структуры | |
|---|---|
| tensorflow::ops::TensorArrayGather::Attrs | Необязательные установки атрибутов для TensorArrayGather. |
Публичные атрибуты
operation
Operation operation
значение
::tensorflow::Output value
Публичные функции
TensorArrayGather
TensorArrayGather( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input indices, ::tensorflow::Input flow_in, DataType dtype )
TensorArrayGather
TensorArrayGather( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input indices, ::tensorflow::Input flow_in, DataType dtype, const TensorArrayGather::Attrs & attrs )
узел
::tensorflow::Node * node() const
оператор::tensorflow::Вход
operator::tensorflow::Input() const
оператор::tensorflow::Выход
operator::tensorflow::Output() const
Публичные статические функции
Форма элемента
Attrs ElementShape( PartialTensorShape x )
© 2020 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.4/api_docs/cc/class/tensorflow/ops/tensor-array-gather