# tensorflow::ops::BarrierTakeMany::Attrs Struct Reference

# tensorflow::
ops::
BarrierTakeMany::
Attrs

`
#include <data_flow_ops.h>
`


Optional attribute setters for
[BarrierTakeMany](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/barrier-take-many#classtensorflow_1_1ops_1_1_barrier_take_many)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1a34d07b8141f8932782c1220bf109b30a = false ` | ` bool ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1a2f4ea01b5e1dd39701b7fd0074f6ce54 = -1 ` | ` int64 ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1ab4e44ba0532a127592c8b8a94c33a241 = false ` | ` bool ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1a9dda1e0280b99640abb644c2c60580b3 (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs ` Allow to return less than num_elements items if barrier is already closed. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1ab19897a86851468f208b286733203b47 (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs ` If the queue is empty, this operation will block for up to timeout_ms milliseconds. |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs_1a8188671d9e2e1a4791ab4c99fbce732b (bool x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/barrier-take-many/attrs#structtensorflow_1_1ops_1_1_barrier_take_many_1_1_attrs ` Defaults to false. |

## Public attributes

### allow_small_batch_

```
bool tensorflow::ops::BarrierTakeMany::Attrs::allow_small_batch_ = false
```

### timeout_ms_

```
int64 tensorflow::ops::BarrierTakeMany::Attrs::timeout_ms_ = -1
```

### wait_for_incomplete_

```
bool tensorflow::ops::BarrierTakeMany::Attrs::wait_for_incomplete_ = false
```

## Public functions

### AllowSmallBatch

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::AllowSmallBatch(
  bool x
)
```

Allow to return less than num_elements items if barrier is already closed.


Defaults to false

### TimeoutMs

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::TimeoutMs(
  int64 x
)
```

If the queue is empty, this operation will block for up to timeout_ms milliseconds.


Note: This option is not supported yet.


Defaults to -1

### WaitForIncomplete

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierTakeMany::Attrs::WaitForIncomplete(
  bool x
)
```

Defaults to false.