tensorflow::ops::FixedLengthRecordReader
#include <io_ops.h>
Чтение записей фиксированной длины из файла.
Краткое описание
Аргументы:
- scope: Объект Scope
- record_bytes: Количество байтов в записи.
Необязательные атрибуты (см. Attrs):
- header_bytes: Количество байтов в заголовке, по умолчанию 0.
- footer_bytes: Количество байтов в подвале, по умолчанию 0.
- hop_bytes: Количество байтов для перехода перед каждым чтением. Значение по умолчанию 0 означает использование record_bytes.
- container: Если не пусто, этот reader размещается в заданном контейнере. В противном случае используется контейнер по умолчанию.
- shared_name: Если не пусто, этот reader называется в заданном ведре с этим именем. В противном случае используется имя узла.
- encoding: Тип кодирования для файла. В настоящее время поддерживаются ZLIB и GZIP. По умолчанию - без кодирования.
Возвращает:
-
Output: Дескриптор для ссылки на Reader.
| Конструкторы и деструкторы | |
|---|---|
FixedLengthRecordReader(const ::tensorflow::Scope & scope, int64 record_bytes) | |
FixedLengthRecordReader(const ::tensorflow::Scope & scope, int64 record_bytes, const FixedLengthRecordReader::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
reader_handle | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Container(StringPiece x) | |
Encoding(StringPiece x) | |
FooterBytes(int64 x) | |
HeaderBytes(int64 x) | |
HopBytes(int64 x) | |
SharedName(StringPiece x) | |
| Структуры | |
|---|---|
| tensorflow::ops::FixedLengthRecordReader::Attrs | Необязательные установки атрибутов для FixedLengthRecordReader. |
Публичные атрибуты
operation
Operation operation
reader_handle
::tensorflow::Output reader_handle
Публичные функции
FixedLengthRecordReader
FixedLengthRecordReader( const ::tensorflow::Scope & scope, int64 record_bytes )
FixedLengthRecordReader
FixedLengthRecordReader( const ::tensorflow::Scope & scope, int64 record_bytes, const FixedLengthRecordReader::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
Контейнер
Attrs Container( StringPiece x )
Кодирование
Attrs Encoding( StringPiece x )
FooterBytes
Attrs FooterBytes( int64 x )
HeaderBytes
Attrs HeaderBytes( int64 x )
HopBytes
Attrs HopBytes( int64 x )
SharedName
Attrs SharedName( StringPiece x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/fixed-length-record-reader