Link Search Menu Expand Document

ReaderReadUpTo


tensorflow C++ API

tensorflow::ops::ReaderReadUpTo

Returns up tonum_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 thannum_recordseven 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 fromReader

Returns:

Constructor

  • ReaderReadUpTo(const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle, ::tensorflow::Input queue_handle, ::tensorflow::Input num_records) .

Public attributes

  • tensorflow::Output keys.
  • tensorflow::Output values.

ReaderReadUpTo block

Source link : https://github.com/EXPNUNI/enuSpace-Tensorflow/blob/master/enuSpaceTensorflow/tf_io_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input reader_handle : connect Input node.
  • Input queue_handle : connect Input node.
  • num_records : connect Input node or input num___records.

Return:

  • Output reader_handle : Output object of ReaderReadUpTo class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method