# tf.raw_ops.ReaderReadUpTo

<br />

Returns up to `num_records` (key, value) pairs produced by a Reader.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.ReaderReadUpTo`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ReaderReadUpTo)

<br />

    tf.raw_ops.ReaderReadUpTo(
        reader_handle, queue_handle, num_records, name=None
    )

Will dequeue from the input queue if necessary (e.g. when the
Reader needs to start reading from a new file since it has finished
with the previous file).
It may return less than `num_records` even before the last batch.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `reader_handle` | A `Tensor` of type mutable `string`. Handle to a `Reader`. |
| `queue_handle` | A `Tensor` of type mutable `string`. Handle to a `Queue`, with string work items. |
| `num_records` | A `Tensor` of type `int64`. number of records to read from `Reader`. |
| `name` | A name for the operation (optional). |

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of `Tensor` objects (keys, values). ||
| `keys` | A `Tensor` of type `string`. |
| `values` | A `Tensor` of type `string`. |

<br />