TensorArray.Options

public static class TensorArray.Options

Optional attributes for TensorArray

Public Methods

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)

Inherited Methods

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.

public TensorArray.Options elementShape (Shape elementShape)

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 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).