Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
TensorArray.Options
Stay organized with collections
Save and categorize content based on your preferences.
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
public
TensorArray.Options
clearAfterRead
(Boolean clearAfterRead)
Parameters
clearAfterRead |
If true (default), Tensors in the TensorArray are cleared
after being read. This disables multiple read semantics but allows early
release of memory.
|
public
TensorArray.Options
dynamicSize
(Boolean dynamicSize)
Parameters
dynamicSize |
A boolean that determines whether writes to the TensorArray
are allowed to grow the size. By default, this is not allowed.
|
Parameters
elementShape |
The expected shape of an element, if known. Used to
validate the shapes of TensorArray elements. If this shape is not
fully specified, gathering zero-size TensorArrays is an error.
|
public
TensorArray.Options
identicalElementShapes
(Boolean identicalElementShapes)
Parameters
identicalElementShapes |
If true (default is false), then all
elements in the TensorArray will be expected to have identical shapes.
This allows certain behaviors, like dynamically checking for
consistent shapes on write, and being able to fill in properly
shaped zero tensors on stack -- even if the element_shape attribute
is not fully defined.
|
public
TensorArray.Options
tensorArrayName
(String tensorArrayName)
Parameters
tensorArrayName |
Overrides the name used for the temporary tensor_array
resource. Default value is the name of the 'TensorArray' op (which
is guaranteed unique).
|
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-02-12 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-02-12 UTC."],[],[],null,["# TensorArray.Options\n\npublic static class **TensorArray.Options** \nOptional attributes for [TensorArray](/api_docs/java/org/tensorflow/op/core/TensorArray) \n\n### Public Methods\n\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options) | [clearAfterRead](/api_docs/java/org/tensorflow/op/core/TensorArray.Options#clearAfterRead(java.lang.Boolean))(Boolean clearAfterRead) |\n| [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options) | [dynamicSize](/api_docs/java/org/tensorflow/op/core/TensorArray.Options#dynamicSize(java.lang.Boolean))(Boolean dynamicSize) |\n| [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options) | [elementShape](/api_docs/java/org/tensorflow/op/core/TensorArray.Options#elementShape(org.tensorflow.Shape))([Shape](/api_docs/java/org/tensorflow/Shape) elementShape) |\n| [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options) | [identicalElementShapes](/api_docs/java/org/tensorflow/op/core/TensorArray.Options#identicalElementShapes(java.lang.Boolean))(Boolean identicalElementShapes) |\n| [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options) | [tensorArrayName](/api_docs/java/org/tensorflow/op/core/TensorArray.Options#tensorArrayName(java.lang.String))(String tensorArrayName) |\n\n### Inherited Methods\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 [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options)\n**clearAfterRead**\n(Boolean clearAfterRead)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| clearAfterRead | If true (default), Tensors in the TensorArray are cleared after being read. This disables multiple read semantics but allows early release of memory. |\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options)\n**dynamicSize**\n(Boolean dynamicSize)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| dynamicSize | A boolean that determines whether writes to the TensorArray are allowed to grow the size. By default, this is not allowed. |\n|-------------|----------------------------------------------------------------------------------------------------------------------------|\n\n#### public [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options)\n**elementShape**\n([Shape](/api_docs/java/org/tensorflow/Shape) elementShape)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| elementShape | The expected shape of an element, if known. Used to validate the shapes of TensorArray elements. If this shape is not fully specified, gathering zero-size TensorArrays is an error. |\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options)\n**identicalElementShapes**\n(Boolean identicalElementShapes)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| identicalElementShapes | If true (default is false), then all elements in the TensorArray will be expected to have identical shapes. This allows certain behaviors, like dynamically checking for consistent shapes on write, and being able to fill in properly shaped zero tensors on stack -- even if the element_shape attribute is not fully defined. |\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n#### public [TensorArray.Options](/api_docs/java/org/tensorflow/op/core/TensorArray.Options)\n**tensorArrayName**\n(String tensorArrayName)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| tensorArrayName | Overrides the name used for the temporary tensor_array resource. Default value is the name of the 'TensorArray' op (which is guaranteed unique). |\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|"]]