# tensorflow::ops::RecordInput Class Reference

# tensorflow::
ops::
RecordInput

`
#include <data_flow_ops.h>
`


Emits randomized records.

## Summary


Args:

- scope: A [Scope](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object
- file_pattern: Glob pattern for the data files.

<br />


Optional attributes (see
`
https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs
`
):

- file_random_seed: Random seeds used to produce randomized records.
- file_shuffle_shift_ratio: Shifts the list of files after the list is randomly shuffled.
- file_buffer_size: The randomization shuffling buffer.
- file_parallelism: How many sstables are opened and concurrently iterated over.
- batch_size: The batch size.
- compression_type: The type of compression for the file. Currently ZLIB and GZIP are supported. Defaults to none.

<br />


Returns:

- `
  https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output
  ` : A tensor of shape \[batch_size\].

<br />

| ### Constructors and Destructors ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a26e51531e5c0542bd24f55dba61221ae (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, StringPiece file_pattern) ` ||
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1ae26a3c80b78f1c3123122b57250d2e1c (const :: https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, StringPiece file_pattern, const https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs & attrs) ` ||

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a62134892e7237616282ce15d0cbddfb8 ` | ` 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/record-input#classtensorflow_1_1ops_1_1_record_input_1a95bec6ed7fc088ae5e33dce3df3e10c9 ` | ` :: 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/record-input#classtensorflow_1_1ops_1_1_record_input_1ab90acc0d521544c16095592c023a0bd6 () const ` | ` ::tensorflow::Node * ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a8c3725ea7466c860d0094502f83c3758 () const ` | ` ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a81dea1e6e25486fcc6c8eabd37f4160d () const ` | ` ` |

| ### Public static functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a24754dad89c4e9c994ecbb5eefc394e9 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a37f4ac12cc85c0f43e79b1873b283306 (StringPiece x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a967b712c3342641c3b5cd4238d9dd123 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a0bc86f167dbe3e24d0e72f5ea3126a84 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1a7e8b28adca52696f37fc119b4c5f27e0 (int64 x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input_1abf3d0890e42b0646036a3c3b0224708f (float x) ` | ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs#structtensorflow_1_1ops_1_1_record_input_1_1_attrs ` |

| ### Structs ||
|---|---|
| [tensorflow:: ops:: RecordInput:: Attrs](https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/record-input/attrs) | Optional attribute setters for [RecordInput](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/record-input#classtensorflow_1_1ops_1_1_record_input) . |

## Public attributes

### operation

```
Operation operation
```

### records

```
::tensorflow::Output records
```

## Public functions

### RecordInput

```
 RecordInput(
  const ::tensorflow::Scope & scope,
  StringPiece file_pattern
)
```

### RecordInput

```
 RecordInput(
  const ::tensorflow::Scope & scope,
  StringPiece file_pattern,
  const RecordInput::Attrs & attrs
)
```

### node

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

### operator::tensorflow::Input

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

### operator::tensorflow::Output

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

## Public static functions

### BatchSize

```
Attrs BatchSize(
  int64 x
)
```

### CompressionType

```
Attrs CompressionType(
  StringPiece x
)
```

### FileBufferSize

```
Attrs FileBufferSize(
  int64 x
)
```

### FileParallelism

```
Attrs FileParallelism(
  int64 x
)
```

### FileRandomSeed

```
Attrs FileRandomSeed(
  int64 x
)
```

### FileShuffleShiftRatio

```
Attrs FileShuffleShiftRatio(
  float x
)
```