# tensorflow::ops::Barrier::Attrs

`#include <data_flow_ops.h>`

Optional attribute setters for [Barrier](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/barrier#classtensorflow_1_1ops_1_1_barrier).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a69050e8ab6942c26170a259770beb612 = -1` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a12a926ec571515bc3d7f263b29e80930 = ""` | `StringPiece` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a9427afb384416c3b614e93464421d3d2 = {}` | `gtl::ArraySlice< PartialTensorShape >` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1aa08c6738f5454d724dea56d2f412f773 = ""` | `StringPiece` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1af3bd6950840f3ff42a55315285da416f(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs` The capacity of the barrier. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a9efc1dc034650d56b150d89cb7867450(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs` If non-empty, this barrier is placed in the given container. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a418b729afcfe333b28907730793ffd60(const gtl::ArraySlice< PartialTensorShape > & x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs` The shape of each component in a value. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a81b69b1d5a7eaaa0aa32c6e19af28c5b(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs` If non-empty, this barrier will be shared under the given name across multiple sessions. |

## Public attributes

### capacity_

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

### container_

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

### shapes_

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

### shared_name_

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

## Public functions

### Capacity

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Capacity(
  int64 x
)
```
The capacity of the barrier.

The default capacity is MAX_INT32, which is the largest capacity of the underlying queue.

Defaults to -1

### Container

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

Otherwise, a default container is used.

Defaults to ""

### Shapes

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

Each shape must be 1 in the first dimension. The length of this attr must be the same as the length of component_types.

Defaults to \[\]

### SharedName

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

Defaults to ""