tensorflow::ops::TensorArrayGather
#include <data_flow_ops.h>
Gather выбирает определённые элементы из TensorArray и помещает их в выходной value.
Сводка
Все элементы, выбранные с помощью indices, должны иметь одинаковую форму.
Аргументы:
- scope: объект Scope
- handle: дескриптор TensorArray.
- indices: позиции в TensorArray, из которых считываются элементы тензора.
- flow_in: скаляр типа float, обеспечивающий правильную последовательность операций.
- 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
value
::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 )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Открытые статические функции
ElementShape
Attrs ElementShape( PartialTensorShape x )
© 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/r1.15/api_docs/cc/class/tensorflow/ops/tensor-array-gather