Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
TensorArrayConcat
Stay organized with collections
Save and categorize content based on your preferences.
Concat the elements from the TensorArray into value `value`.
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).
Inherited Methods
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
Factory method to create a class wrapping a new TensorArrayConcat operation.
Parameters
scope |
current scope |
handle |
The handle to a TensorArray. |
flowIn |
A float scalar that enforces proper chaining of operations. |
dtype |
The type of the elem that is returned. |
options |
carries optional attributes values |
Returns
- a new instance of TensorArrayConcat
Parameters
elementShapeExcept0 |
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.
|
public
Output<Long>
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
Output<T>
value
()
All of the elements in the TensorArray, concatenated along the first
axis.
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.
Last updated 2022-10-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-27 UTC."],[],[],null,["# TensorArrayConcat\n\npublic final class **TensorArrayConcat** \nConcat the elements from the TensorArray into value \\`value\\`.\n\n\nTakes \\`T\\` elements of shapes\n\n\n (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)\n \nand concatenates them into a Tensor of shape:\n\n\n (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)\n \nAll elements must have the same shape (excepting the first dimension).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Nested Classes\n\n|-------|---|---|------------------------------------------------------------------------------------------------------|\n| class | [TensorArrayConcat.Options](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat.Options) || Optional attributes for [TensorArrayConcat](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat) |\n\n### Public Methods\n\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static \\\u003cT\\\u003e [TensorArrayConcat](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat)\\\u003cT\\\u003e | [create](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand\u003c?\u003e,%20org.tensorflow.Operand\u003cjava.lang.Float\u003e,%20java.lang.Class\u003cT\u003e,%20org.tensorflow.op.core.TensorArrayConcat.Options...))([Scope](/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e handle, [Operand](/api_docs/java/org/tensorflow/Operand)\\\u003cFloat\\\u003e flowIn, Class\\\u003cT\\\u003e dtype, [Options...](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat.Options) options) Factory method to create a class wrapping a new TensorArrayConcat operation. |\n| static [TensorArrayConcat.Options](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat.Options) | [elementShapeExcept0](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat#elementShapeExcept0(org.tensorflow.Shape))([Shape](/api_docs/java/org/tensorflow/Shape) elementShapeExcept0) |\n| [Output](/api_docs/java/org/tensorflow/Output)\\\u003cLong\\\u003e | [lengths](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat#lengths())() A vector of the row sizes of the original T elements in the value output. |\n| [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [value](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat#value())() All of the elements in the TensorArray, concatenated along the first axis. |\n\n### Inherited Methods\n\nFrom class [org.tensorflow.op.PrimitiveOp](/api_docs/java/org/tensorflow/op/PrimitiveOp) \n\n|------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| final boolean | [equals](/api_docs/java/org/tensorflow/op/PrimitiveOp#equals(java.lang.Object))(Object obj) |\n| final int | [hashCode](/api_docs/java/org/tensorflow/op/PrimitiveOp#hashCode())() |\n| [Operation](/api_docs/java/org/tensorflow/Operation) | [op](/api_docs/java/org/tensorflow/op/PrimitiveOp#op())() Returns the underlying [Operation](/api_docs/java/org/tensorflow/Operation) |\n| final String | [toString](/api_docs/java/org/tensorflow/op/PrimitiveOp#toString())() |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [TensorArrayConcat](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat)\\\u003cT\\\u003e\n**create**\n([Scope](/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](/api_docs/java/org/tensorflow/Operand)\\\u003c?\\\u003e handle, [Operand](/api_docs/java/org/tensorflow/Operand)\\\u003cFloat\\\u003e flowIn, Class\\\u003cT\\\u003e dtype, [Options...](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat.Options) options)\n\nFactory method to create a class wrapping a new TensorArrayConcat operation. \n\n##### Parameters\n\n| scope | current scope |\n| handle | The handle to a TensorArray. |\n| flowIn | A float scalar that enforces proper chaining of operations. |\n| dtype | The type of the elem that is returned. |\n| options | carries optional attributes values |\n|---------|-------------------------------------------------------------|\n\n##### Returns\n\n- a new instance of TensorArrayConcat \n\n#### public static [TensorArrayConcat.Options](/api_docs/java/org/tensorflow/op/core/TensorArrayConcat.Options)\n**elementShapeExcept0**\n([Shape](/api_docs/java/org/tensorflow/Shape) elementShapeExcept0)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| elementShapeExcept0 | 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. |\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [Output](/api_docs/java/org/tensorflow/Output)\\\u003cLong\\\u003e\n**lengths**\n()\n\nA vector of the row sizes of the original T elements in the\nvalue output. In the example above, this would be the values:\n\\`(n1, n2, ..., n(T-1))\\`. \n\n#### public [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e\n**value**\n()\n\nAll of the elements in the TensorArray, concatenated along the first\naxis."]]