tensorflow::ops::TensorArray::Attrs

#include <data_flow_ops.h>

Optional attribute setters for TensorArray.

Summary

Public attributes

clear_after_read_ = true
bool
dynamic_size_ = false
bool
element_shape_ = ::tensorflow::PartialTensorShape()
PartialTensorShape
tensor_array_name_ = ""
StringPiece

Public functions

ClearAfterRead(bool x)
If true (default), Tensors in the TensorArray are cleared after being read.
DynamicSize(bool x)
A boolean that determines whether writes to the TensorArray are allowed to grow the size.
ElementShape(PartialTensorShape x)
The expected shape of an element, if known.
TensorArrayName(StringPiece x)
Overrides the name used for the temporary tensor_array resource.

Public attributes

clear_after_read_

bool tensorflow::ops::TensorArray::Attrs::clear_after_read_ = true

dynamic_size_

bool tensorflow::ops::TensorArray::Attrs::dynamic_size_ = false

element_shape_

PartialTensorShape tensorflow::ops::TensorArray::Attrs::element_shape_ = ::tensorflow::PartialTensorShape()

tensor_array_name_

StringPiece tensorflow::ops::TensorArray::Attrs::tensor_array_name_ = ""

Public functions

ClearAfterRead

Attrs tensorflow::ops::TensorArray::Attrs::ClearAfterRead(
  bool x
)

If true (default), Tensors in the TensorArray are cleared after being read.

This disables multiple read semantics but allows early release of memory.

Defaults to true

DynamicSize

Attrs tensorflow::ops::TensorArray::Attrs::DynamicSize(
  bool x
)

A boolean that determines whether writes to the TensorArray are allowed to grow the size.

By default, this is not allowed.

Defaults to false

ElementShape

Attrs tensorflow::ops::TensorArray::Attrs::ElementShape(
  PartialTensorShape x
)

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.

Defaults to

TensorArrayName

Attrs tensorflow::ops::TensorArray::Attrs::TensorArrayName(
  StringPiece x
)

Overrides the name used for the temporary tensor_array resource.

Default value is the name of the 'TensorArray' op (which is guaranteed unique).

Defaults to ""