tensorflow::ops::TensorArrayConcat
#include <data_flow_ops.h>
Объединяет элементы из TensorArray в значение value.
Краткое описание
Принимает T элементов формы
(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
и объединяет их в Tensor формы:
(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
Все элементы должны иметь одинаковую форму (за исключением первого измерения).
Аргументы:
- scope: объект Scope
- handle: дескриптор TensorArray.
- flow_in: скаляр типа float, обеспечивающий правильное связывание операций в цепочку.
- dtype: тип возвращаемого элемента.
Необязательные атрибуты (см. Attrs):
- element_shape_except0: ожидаемая форма элемента, если она известна, без учета первого измерения. Используется для проверки форм элементов TensorArray. Если эта форма задана не полностью, объединение TensorArray нулевого размера приведет к ошибке.
Возвращает:
-
Outputзначение: Все элементы из TensorArray, объединенные вдоль первой оси. -
Outputlengths: вектор размеров строк исходных T элементов в выходном значении. В приведенном выше примере это были бы значения:(n1, n2, ..., n(T-1)).
| Конструкторы и деструкторы | |
|---|---|
TensorArrayConcat(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype) | |
TensorArrayConcat(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype, const TensorArrayConcat::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
lengths | |
operation | |
value | |
| Открытые статические функции | |
|---|---|
ElementShapeExcept0(PartialTensorShape x) | |
| Структуры | |
|---|---|
| tensorflow::ops::TensorArrayConcat::Attrs | Методы задания необязательных атрибутов для TensorArrayConcat. |
Открытые атрибуты
lengths
::tensorflow::Output lengths
operation
Operation operation
value
::tensorflow::Output value
Открытые функции
TensorArrayConcat
TensorArrayConcat( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype )
TensorArrayConcat
TensorArrayConcat( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype, const TensorArrayConcat::Attrs & attrs )
Открытые статические функции
ElementShapeExcept0
Attrs ElementShapeExcept0( 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-concat