Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::FixedLengthRecordReader
#include <io_ops.h>
A Reader that outputs fixed-length records from a file.
Summary
Args:
- scope: A Scope object
- record_bytes: Number of bytes in the record.
Optional attributes (see Attrs
):
- 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.
Public attributes
Public functions
FixedLengthRecordReader
FixedLengthRecordReader(
const ::tensorflow::Scope & scope,
int64 record_bytes
)
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Container
Attrs Container(
StringPiece x
)
Encoding
Attrs Encoding(
StringPiece x
)
Attrs FooterBytes(
int64 x
)
Attrs HeaderBytes(
int64 x
)
HopBytes
Attrs HopBytes(
int64 x
)
SharedName
Attrs SharedName(
StringPiece x
)
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. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 UTC."],[],[],null,["# tensorflow::ops::FixedLengthRecordReader Class Reference\n\ntensorflow::ops::FixedLengthRecordReader\n========================================\n\n`#include \u003cio_ops.h\u003e`\n\nA Reader that outputs fixed-length records from a file.\n\nSummary\n-------\n\nArgs:\n\n- scope: A [Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- record_bytes: Number of bytes in the record.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs)):\n\n- header_bytes: Number of bytes in the header, defaults to 0.\n- footer_bytes: Number of bytes in the footer, defaults to 0.\n- hop_bytes: Number of bytes to hop before each read. Default of 0 means using record_bytes.\n- container: If non-empty, this reader is placed in the given container. Otherwise, a default container is used.\n- shared_name: If non-empty, this reader is named in the given bucket with this shared_name. Otherwise, the node name is used instead.\n- encoding: The type of encoding for the file. Currently ZLIB and GZIP are supported. Defaults to none.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The handle to reference the Reader.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [FixedLengthRecordReader](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1aa6ad72f08d89016af3043f72912d11eb)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, int64 record_bytes)` ||\n| [FixedLengthRecordReader](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a6951f2cbfe13b445b6a134ce78fe77c1)`(const ::`[tensorflow::Scope](/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, int64 record_bytes, const `[FixedLengthRecordReader::Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a0c935fca537ef7bcdf2a50360d8fbd5b) | [Operation](/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [reader_handle](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a00481a6bc3fe0179015426e24fc5e3c2) | `::`[tensorflow::Output](/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a2c1856b76a5e730a35dda4b05ab36554)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1ad939f43d11646484e2b9d7415ede5f46)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1ac225045293aca5f7d8f09bbdbc233a41)`() const ` | |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [Container](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1aed436fcc075716b55de242a06c31d66e)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n| [Encoding](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a3ff28d9038bbd2ff938d63ce611249c4)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n| [FooterBytes](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1acf06e389c6e04efa9e481214fea4c994)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n| [HeaderBytes](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a22257b324b398ad5b5a7a5f5fee189a4)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n| [HopBytes](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1af4f10340eb21642925af29b97ee7fa0d)`(int64 x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_fixed_length_record_reader_1a6adaddff1f2c88d557e6b7ffbb638d66)`(StringPiece x)` | [Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs#structtensorflow_1_1ops_1_1_fixed_length_record_reader_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::FixedLengthRecordReader::Attrs](/api_docs/cc/struct/tensorflow/ops/fixed-length-record-reader/attrs) | Optional attribute setters for [FixedLengthRecordReader](/api_docs/cc/class/tensorflow/ops/fixed-length-record-reader#classtensorflow_1_1ops_1_1_fixed_length_record_reader). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### reader_handle\n\n```scdoc\n::tensorflow::Output reader_handle\n``` \n\nPublic functions\n----------------\n\n### FixedLengthRecordReader\n\n```gdscript\n FixedLengthRecordReader(\n const ::tensorflow::Scope & scope,\n int64 record_bytes\n)\n``` \n\n### FixedLengthRecordReader\n\n```gdscript\n FixedLengthRecordReader(\n const ::tensorflow::Scope & scope,\n int64 record_bytes,\n const FixedLengthRecordReader::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Container\n\n```text\nAttrs Container(\n StringPiece x\n)\n``` \n\n### Encoding\n\n```text\nAttrs Encoding(\n StringPiece x\n)\n``` \n\n### FooterBytes\n\n```text\nAttrs FooterBytes(\n int64 x\n)\n``` \n\n### HeaderBytes\n\n```text\nAttrs HeaderBytes(\n int64 x\n)\n``` \n\n### HopBytes\n\n```text\nAttrs HopBytes(\n int64 x\n)\n``` \n\n### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```"]]