Link Search Menu Expand Document

FixedLengthRecordReader


tensorflow C++ API

tensorflow::ops::FixedLengthRecordReader

A Reader that outputs fixed-length records from a file.


Summary

Arguments:

  • scope: A Scope object
  • record_bytes: Number of bytes in the record.

Optional attributes (seeAttrs):

  • header_bytes: Number of bytes in the header, defaults to 0.
  • footer_bytes: Number of bytes in the footer, defaults to 0.
  • hop_bytes: Number of bytes to hop before each read. Default of 0 means using record_bytes.
  • container: If non-empty, this reader is placed in the given container. Otherwise, a default container is used.
  • shared_name: If non-empty, this reader is named in the given bucket with this shared_name. Otherwise, the node name is used instead.
  • encoding: The type of encoding for the file. Currently ZLIB and GZIP are supported. Defaults to none.

Returns:

  • Output: The handle to reference the Reader.

Constructor

  • FixedLengthRecordReader(const ::tensorflow::Scope & scope, int64 record_bytes, const FixedLengthRecordReader::Attrs & attrs) .

Public attributes

  • tensorflow::Output reader_handle.

FixedLengthRecordReader 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 record_bytes : connect Input node or input record bytes in int.
  • FixedLengthRecordReader::Attrs attrs : input option value. ex) header_bytes_ = 0;footer_bytes_ = 0;hop_bytes_ = 0;container_ = ““;shared_name_ = ““;encoding_ = “”;

Return:

  • Output reader_handle : Output object of FixedLengthRecordReader class object.

Result:

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

Using Method