# tensorflow::ops::RandomShuffleQueue::Attrs

`#include <data_flow_ops.h>`

Optional attribute setters for [RandomShuffleQueue](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1afb83eefeee0f76422950f84b2f3fce2a = -1` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a39b2ecd316bb0a80de0bcd7d1b979afc = ""` | `StringPiece` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a0a23832b159b21ef89a692feb7b53129 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a1dc3db9c6e75d898bc6783d451815636 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a037b739063be2c8e48a6ec3286476628 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ab9ff55cf53eab01c47c6f16f65e489af = {}` | `gtl::ArraySlice< PartialTensorShape >` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a0a6b829ef3cd365ff950779845813201 = ""` | `StringPiece` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a371ea09e4f32789435cf0e4a540f4b49(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` The upper bound on the number of elements in this queue. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a1c87319288cf7fa7454cc31538e352f4(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` If non-empty, this queue is placed in the given container. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a541d34de9c459848ba76c56ab1ab6906(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` Dequeue will block unless there would be this many elements after the dequeue or the queue is closed. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ac74e47deedec2bea93ff284e5665c1c2(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ad7f04429306636bee9ab53dcf93c790f(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` A second seed to avoid seed collision. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ad059f023ca75b51a287e3c3213b0fff3(const gtl::ArraySlice< PartialTensorShape > & x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs` The shape of each component in a value. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a09a84a8491819f32042af4814345c095(StringPiece x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_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::RandomShuffleQueue::Attrs::capacity_ = -1
```

### container_

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

### min_after_dequeue_

```
int64 tensorflow::ops::RandomShuffleQueue::Attrs::min_after_dequeue_ = 0
```

### seed2_

```
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed2_ = 0
```

### seed_

```
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed_ = 0
```

### shapes_

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

### shared_name_

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

## Public functions

### Capacity

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::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::RandomShuffleQueue::Attrs::Container(
  StringPiece x
)
```
If non-empty, this queue is placed in the given container.

Otherwise, a default container is used.

Defaults to ""

### MinAfterDequeue

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::MinAfterDequeue(
  int64 x
)
```
Dequeue will block unless there would be this many elements after the dequeue or the queue is closed.

This ensures a minimum level of mixing of elements.

Defaults to 0

### Seed

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed(
  int64 x
)
```
If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed.

Otherwise, a random seed is used.

Defaults to 0

### Seed2

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed2(
  int64 x
)
```
A second seed to avoid seed collision.

Defaults to 0

### Shapes

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::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::RandomShuffleQueue::Attrs::SharedName(
  StringPiece x
)
```
If non-empty, this queue will be shared under the given name across multiple sessions.

Defaults to ""