# tensorflow::ops::RandomShuffleQueue Class Reference

# tensorflow::
ops::
RandomShuffleQueue

`
#include <data_flow_ops.h>
`


A queue that randomizes the order of elements.

## Summary


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- component_types: The type of each component in a value.

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs
`
):

- shapes: 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.
- capacity: The upper bound on the number of elements in this queue. Negative numbers mean no limit.
- min_after_dequeue: 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.
- seed: 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.
- seed2: A second seed to avoid seed collision.
- container: If non-empty, this queue is placed in the given container. Otherwise, a default container is used.
- shared_name: If non-empty, this queue will be shared under the given name across multiple sessions.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : The handle to the queue.

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a9bccc69b7e3a13f4bb5d7323fd05ef6c (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, const DataTypeSlice & component_types) ` ||
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ac7d64746531a706ec9376acd40b3a6ad (const :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, const DataTypeSlice & component_types, const https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a29baf87a7c0accb04db35584eefbc430 ` | ` :: https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a15b6a2b2a78276af62a6e37fb3f25d8a ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a61438811ad12bb57fb2a2d19f00a9189 () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1acb4b0c5652b368664dd85dcc037d3c02 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1abb138edd572be65ba0192bf164347847 () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a4413b1b2cb0ddee75d33f76663beeaaa (int64 x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ad14fa9c08950c6c23b22fc601befd539 (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a274e69d218da5754021b398f61c5bf1a (int64 x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a67af85647a9577958568a226754aab46 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1ae9697d776eb5643d3bf927ee56f4ca4c (int64 x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a8ca53d0b2e6ee989a88c2020e1fc0c08 (const gtl::ArraySlice< PartialTensorShape > & x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue_1a6191f641c52c89e90b546d547834a02c (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs ` |

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

## Public attributes

### handle

```
::tensorflow::Output handle
```

### operation

```
Operation operation
```

## Public functions

### RandomShuffleQueue

```
 RandomShuffleQueue(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types
)
```

### RandomShuffleQueue

```
 RandomShuffleQueue(
  const ::tensorflow::Scope & scope,
  const DataTypeSlice & component_types,
  const RandomShuffleQueue::Attrs & attrs
)
```

### node

```
::tensorflow::Node * node() const 
```

### operator::tensorflow::Input

```
 operator::tensorflow::Input() const 
```

### operator::tensorflow::Output

```
 operator::tensorflow::Output() const 
```

## Public static functions

### Capacity

```
Attrs Capacity(
  int64 x
)
```

### Container

```
Attrs Container(
  StringPiece x
)
```

### MinAfterDequeue

```
Attrs MinAfterDequeue(
  int64 x
)
```

### Seed

```
Attrs Seed(
  int64 x
)
```

### Seed2

```
Attrs Seed2(
  int64 x
)
```

### Shapes

```
Attrs Shapes(
  const gtl::ArraySlice< PartialTensorShape > & x
)
```

### SharedName

```
Attrs SharedName(
  StringPiece x
)
```