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 )
© 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/tensor-array-gather