# tensorflow::ops::TensorArrayGather::Attrs Struct Reference

# tensorflow::
ops::
TensorArrayGather::
Attrs

`
#include <data_flow_ops.h>
`


Optional attribute setters for
[TensorArrayGather](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/tensor-array-gather#classtensorflow_1_1ops_1_1_tensor_array_gather)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/tensor-array-gather/attrs#structtensorflow_1_1ops_1_1_tensor_array_gather_1_1_attrs_1adcea1b30f6c6ffe54440623285a89bb6 = ::tensorflow::PartialTensorShape() ` | ` PartialTensorShape ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/tensor-array-gather/attrs#structtensorflow_1_1ops_1_1_tensor_array_gather_1_1_attrs_1a35f9ef8b692ec2975934b78823699ece (PartialTensorShape x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/tensor-array-gather/attrs#structtensorflow_1_1ops_1_1_tensor_array_gather_1_1_attrs ` The expected shape of an element, if known. |

## Public attributes

### element_shape_

```
PartialTensorShape tensorflow::ops::TensorArrayGather::Attrs::element_shape_ = ::tensorflow::PartialTensorShape()
```

## Public functions

### ElementShape

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::TensorArrayGather::Attrs::ElementShape(
  PartialTensorShape x
)
```

The expected shape of an element, if known.


Used to validate the shapes of
[TensorArray](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array)
elements. If this shape is not fully specified, gathering zero-size TensorArrays is an error.


Defaults to