# tensorflow::ops::IdentityReader Class Reference

# tensorflow::
ops::
IdentityReader

`
#include <io_ops.h>
`


A Reader that outputs the queued work as both the key and value.

## Summary


To use, enqueue strings in a Queue.
[ReaderRead](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/reader-read#classtensorflow_1_1ops_1_1_reader_read)
will take the front work string and output (work, work).


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/identity-reader/attrs#structtensorflow_1_1ops_1_1_identity_reader_1_1_attrs
`
):

- container: If non-empty, this reader is placed in the given container. Otherwise, a default container is used.
- shared_name: If non-empty, this reader is named in the given bucket with this shared_name. Otherwise, the node name is used instead.

<br />


Returns:

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

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1a8377a1278a34db6e77c425ff2e9e7ff3 (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope) ` ||
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1af33f0b851d794d0ec80d99c58487d2c2 (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, const https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/identity-reader/attrs#structtensorflow_1_1ops_1_1_identity_reader_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1a7ec93f43074ad744acc98e1d1a733114 ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1a99941351a078c0603e987274e036aaec ` | ` :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1aaca21556a5e7953519c4f3bb2e8e586d () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1a040ff71a57aa70dc1302a1a02ca4642f () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1aa542e40b49ddb2813861d60aad258ed7 () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1a0143cf6ae20b8eb585dc75f7ca9e1b65 (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/identity-reader/attrs#structtensorflow_1_1ops_1_1_identity_reader_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader_1acc58b573c228deef23d4680b1c5fb452 (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/identity-reader/attrs#structtensorflow_1_1ops_1_1_identity_reader_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: IdentityReader:: Attrs](https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/identity-reader/attrs) | Optional attribute setters for [IdentityReader](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/identity-reader#classtensorflow_1_1ops_1_1_identity_reader) . |

## Public attributes

### operation

```
Operation operation
```

### reader_handle

```
::tensorflow::Output reader_handle
```

## Public functions

### IdentityReader

```
 IdentityReader(
  const ::tensorflow::Scope & scope
)
```

### IdentityReader

```
 IdentityReader(
  const ::tensorflow::Scope & scope,
  const IdentityReader::Attrs & attrs
)
```

### node

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

### operator::tensorflow::Input

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

### operator::tensorflow::Output

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

## Public static functions

### Container

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

### SharedName

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