public static class TensorArray.Options extends Object
TensorArray
Modifier and Type | Method and Description |
---|---|
TensorArray.Options |
clearAfterRead(Boolean clearAfterRead) |
TensorArray.Options |
dynamicSize(Boolean dynamicSize) |
TensorArray.Options |
elementShape(Shape elementShape) |
TensorArray.Options |
identicalElementShapes(Boolean identicalElementShapes) |
TensorArray.Options |
tensorArrayName(String tensorArrayName) |
public TensorArray.Options elementShape(Shape elementShape)
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 dynamicSize(Boolean dynamicSize)
dynamicSize
- A boolean that determines whether writes to the TensorArray
are allowed to grow the size. By default, this is not allowed.public TensorArray.Options clearAfterRead(Boolean clearAfterRead)
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 identicalElementShapes(Boolean identicalElementShapes)
identicalElementShapes
- If true (default is false), then all
elements in the TensorArray will be expected to have 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)
tensorArrayName
- Overrides the name used for the temporary tensor_array
resource. Default value is the name of the 'TensorArray' op (which
is guaranteed unique).Copyright © 2022. All rights reserved.