# tensorflow::ops::FIFOQueue::Attrs Struct Reference

# tensorflow::ops::FIFOQueue::Attrs

`#include <data_flow_ops.h>`

Optional attribute setters for [FIFOQueue](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/f-i-f-o-queue#classtensorflow_1_1ops_1_1_f_i_f_o_queue).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1ae28ec14fda16522f12c863523082d344 = -1` | `int64` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a3cad0c924b508b6f992b119b773808a7 = ""` | `StringPiece` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a14c5fe53dc9b7ac9c4a2d74ded350a87 = {}` | `gtl::ArraySlice< PartialTensorShape >` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a6969cd51d4824a259e92cbc90c3d0c06 = ""` | `StringPiece` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a4a786bc68c2732d8e0d72b2c382101f5(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs` The upper bound on the number of elements in this queue. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1afcf423b907d26985fab5863459b4bd1b(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs` If non-empty, this queue is placed in the given container. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a77e50ffbad8726bd7f8a7aeec309bf6e(const gtl::ArraySlice< PartialTensorShape > & x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs` The shape of each component in a value. |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1aa45a52efc11ffde51babdec6ffc57872(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs` If non-empty, this queue will be shared under the given name across multiple sessions. |

## Public attributes

### capacity_

```
int64 tensorflow::ops::FIFOQueue::Attrs::capacity_ = -1
```

### container_

```
StringPiece tensorflow::ops::FIFOQueue::Attrs::container_ = ""
```

### shapes_

```
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::FIFOQueue::Attrs::shapes_ = {}
```

### shared_name_

```
StringPiece tensorflow::ops::FIFOQueue::Attrs::shared_name_ = ""
```

## Public functions

### Capacity

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Capacity(
  int64 x
)
```
The upper bound on the number of elements in this queue.

Negative numbers mean no limit.

Defaults to -1

### Container

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Container(
  StringPiece x
)
```
If non-empty, this queue is placed in the given container.

Otherwise, a default container is used.

Defaults to ""

### Shapes

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)
```
The shape of each component in a value.

The length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.

Defaults to \[\]

### SharedName

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::SharedName(
  StringPiece x
)
```
If non-empty, this queue will be shared under the given name across multiple sessions.

Defaults to ""