Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::ReaderReadUpTo
#include <io_ops.h>
Returns up to num_records
(key, value) pairs produced by a Reader.
Summary
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.
Arguments:
- scope: A Scope object
- reader_handle: Handle to a
Reader
.
- queue_handle: Handle to a
Queue
, with string work items.
- num_records: number of records to read from
Reader
.
Returns:
Public attributes
Public functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::ReaderReadUpTo Class Reference\n\ntensorflow::ops::ReaderReadUpTo\n===============================\n\n`#include \u003cio_ops.h\u003e`\n\nReturns up to `num_records` (key, value) pairs produced by a Reader.\n\nSummary\n-------\n\nWill 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.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- reader_handle: Handle to a `Reader`.\n- queue_handle: Handle to a `Queue`, with string work items.\n- num_records: number of records to read from `Reader`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) keys: A 1-D tensor.\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) values: A 1-D tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ReaderReadUpTo](#classtensorflow_1_1ops_1_1_reader_read_up_to_1a2ec15832620e45ab0ea0a17f650cb1f5)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reader_handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` queue_handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` num_records)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [keys](#classtensorflow_1_1ops_1_1_reader_read_up_to_1af7a8295467508f82a27607fc8f67ed71) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_reader_read_up_to_1a5b7389ad7ab4f4d1dc2c976d3dd52e9e) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [values](#classtensorflow_1_1ops_1_1_reader_read_up_to_1abb8bf94a488824b08dc38f935f62a0be) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\nPublic attributes\n-----------------\n\n### keys\n\n```text\n::tensorflow::Output keys\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### values\n\n```text\n::tensorflow::Output values\n``` \n\nPublic functions\n----------------\n\n### ReaderReadUpTo\n\n```gdscript\n ReaderReadUpTo(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input reader_handle,\n ::tensorflow::Input queue_handle,\n ::tensorflow::Input num_records\n)\n```"]]