Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::
ops::
TensorArrayConcat
#include <data_flow_ops.h>
Concat
the elements from the
TensorArray
into value
value
.
Summary
Takes
T
elements of shapes
(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
and concatenates them into a
Tensor
of shape:
```(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
All elements must have the same shape (excepting the first dimension).
Args:
* scope: A Scope object
* handle: The handle to a TensorArray.
* flow_in: A float scalar that enforces proper chaining of operations.
* dtype: The type of the elem that is returned.
Optional attributes (see Attrs
):
* element_shape_except0: The expected shape of an element, if known,
excluding the first dimension. Used to validate the shapes of
TensorArray elements. If this shape is not fully specified, concatenating
zero-size TensorArrays is an error.
Returns:
* Output
value: All of the elements in the TensorArray, concatenated along the first
axis.
* Output
lengths: A vector of the row sizes of the original T elements in the
value output. In the example above, this would be the values:
(n1, n2, ..., n(T-1))
.
Public attributes
Public functions
Public static functions
ElementShapeExcept0
Attrs ElementShapeExcept0(
PartialTensorShape x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-05-14 UTC.
[null,null,["Last updated 2021-05-14 UTC."],[],[],null,["# tensorflow::ops::TensorArrayConcat Class Reference\n\ntensorflow::\nops::\nTensorArrayConcat\n====================================\n\n`\n#include \u003cdata_flow_ops.h\u003e\n`\n\n\n[Concat](/versions/r2.5/api_docs/cc/class/tensorflow/ops/concat#classtensorflow_1_1ops_1_1_concat)\nthe elements from the\n[TensorArray](/versions/r2.5/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array)\ninto value\n`\nvalue\n`\n.\n\nSummary\n-------\n\n\nTakes\n`\nT\n`\nelements of shapes\n\n\n```text\n (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)\n \n```\n\n\u003cbr /\u003e\n\n\nand concatenates them into a\n[Tensor](/versions/r2.5/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor)\nof shape:\n\n\n\\`\\`\\`(n0 + n1 + ... + n(T-1) x d0 x d1 x ...) \n\n```text\n\n```\n\n\u003cbr /\u003e\n\n\n```text\nAll elements must have the same shape (excepting the first dimension).\n```\n\n\u003cbr /\u003e\n\n\n```carbon\nArgs:\n* scope: A Scope object\n* handle: The handle to a TensorArray.\n* flow_in: A float scalar that enforces proper chaining of operations.\n* dtype: The type of the elem that is returned.\n```\n\n\u003cbr /\u003e\n\n\n Optional attributes (see /versions/r2.5/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs):\n * element_shape_except0: The expected shape of an element, if known,\n excluding the first dimension. Used to validate the shapes of\n TensorArray elements. If this shape is not fully specified, concatenating\n zero-size TensorArrays is an error.\n\n\u003cbr /\u003e\n\n\n Returns:\n * /versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output value: /versions/r2.5/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all of the elements in the /versions/r2.5/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array, concatenated along the first\n axis.\n * /versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output lengths: A vector of the row sizes of the original T elements in the\n value output. In the example above, this would be the values:\n (n1, n2, ..., n(T-1)). \n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| ` `[TensorArrayConcat](#classtensorflow_1_1ops_1_1_tensor_array_concat_1aab54b53cc7e1c5f65154a9ab7a3a2b6f)` (const :: `[tensorflow::Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` flow_in, DataType dtype) ` ||\n| ` `[TensorArrayConcat](#classtensorflow_1_1ops_1_1_tensor_array_concat_1adce330002ce711626c4b067bca8eb40e)` (const :: `[tensorflow::Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, :: `[tensorflow::Input](/versions/r2.5/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` flow_in, DataType dtype, const `[TensorArrayConcat::Attrs](/versions/r2.5/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs)` & attrs) ` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| ` `[lengths](#classtensorflow_1_1ops_1_1_tensor_array_concat_1af3dca4f4a395a0bb0702e092086e7b03)` ` | ` :: `[tensorflow::Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)` ` |\n| ` `[operation](#classtensorflow_1_1ops_1_1_tensor_array_concat_1a680b113e26c09068a4f01c01f797b085)` ` | ` `[Operation](/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)` ` |\n| ` `[value](#classtensorflow_1_1ops_1_1_tensor_array_concat_1a636fe92f677b9f2e9d667fa338837b4e)` ` | ` :: `[tensorflow::Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[ElementShapeExcept0](#classtensorflow_1_1ops_1_1_tensor_array_concat_1a2e0ae98efaf62f30ca8b83f5f42baa76)` (PartialTensorShape x) ` | ` `[Attrs](/versions/r2.5/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs)` ` |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow:: ops:: TensorArrayConcat:: Attrs](/versions/r2.5/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs) | Optional attribute setters for [TensorArrayConcat](/versions/r2.5/api_docs/cc/class/tensorflow/ops/tensor-array-concat#classtensorflow_1_1ops_1_1_tensor_array_concat) . |\n\nPublic attributes\n-----------------\n\n### lengths\n\n```text\n::tensorflow::Output lengths\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### value\n\n```text\n::tensorflow::Output value\n``` \n\nPublic functions\n----------------\n\n### TensorArrayConcat\n\n```gdscript\n TensorArrayConcat(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input flow_in,\n DataType dtype\n)\n``` \n\n### TensorArrayConcat\n\n```gdscript\n TensorArrayConcat(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input flow_in,\n DataType dtype,\n const TensorArrayConcat::Attrs & attrs\n)\n``` \n\nPublic static functions\n-----------------------\n\n### ElementShapeExcept0\n\n```text\nAttrs ElementShapeExcept0(\n PartialTensorShape x\n)\n```"]]