ReaderReset


tensorflow C++ API

tensorflow::ops::ReaderReset

Restore a Reader to its initial clean state.


Summary

Arguments:

  • scope: A Scope object
  • reader_handle: Handle to a Reader.

Returns:

  • the created Operation

Constructor

  • ReaderReset(const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle).

Public attributes

  • tensorflow::Operation operation.

ReaderReset 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.

Return:

  • Output operation: Output object of ReaderReset class object.

Result:

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

Using Method

Restore a Reader to FixedLengthRecordReader initial clean state when ReaderNumRecordsProduced is greater then 50.

Actually initial clean state is accomplished in the next step after ReaderReset is enabled. .

ReaderReadUpTo reads 5 records.

results matching ""

    No results matching ""