Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
тензорный поток:: опс:: TextLineReader
#include <io_ops.h>
Reader, который выводит строки файла, разделенные '
'.
Краткое содержание
Аргументы:
Необязательные атрибуты (см. Attrs
):
- skip_header_lines: количество строк, которые нужно пропустить с начала каждого файла.
- контейнер: если он не пуст, этот считыватель помещается в данный контейнер. В противном случае используется контейнер по умолчанию.
- shared_name: если не пусто, это устройство чтения названо в данном сегменте с этим общим_имя. В противном случае вместо него используется имя узла.
Возврат:
-
Output
: дескриптор для ссылки на Reader.
Публичные атрибуты
операция
Operation operation
reader_handle
::tensorflow::Output reader_handle
Общественные функции
TextLineReader
TextLineReader(
const ::tensorflow::Scope & scope
)
TextLineReader
TextLineReader(
const ::tensorflow::Scope & scope,
const TextLineReader::Attrs & attrs
)
узел
::tensorflow::Node * node() const
operator::tensorflow::Input() const
оператор::tensorflow::Выход
operator::tensorflow::Output() const
Публичные статические функции
Контейнер
Attrs Container(
StringPiece x
)
Общее имя
Attrs SharedName(
StringPiece x
)
Attrs SkipHeaderLines(
int64 x
)
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-27 UTC.
[null,null,["Последнее обновление: 2025-07-27 UTC."],[],[],null,["# tensorflow::ops::TextLineReader Class Reference\n\ntensorflow::ops::TextLineReader\n===============================\n\n`#include \u003cio_ops.h\u003e`\n\nA Reader that outputs the lines of a file delimited by ' \n\n'.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs#structtensorflow_1_1ops_1_1_text_line_reader_1_1_attrs)):\n\n- skip_header_lines: Number of lines to skip from the beginning of every file.\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\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/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| [TextLineReader](#classtensorflow_1_1ops_1_1_text_line_reader_1a66fa9fed28552565e58024d687635c20)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope)` ||\n| [TextLineReader](#classtensorflow_1_1ops_1_1_text_line_reader_1aed74d51b4278508aa1d6faedcc0a0826)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const `[TextLineReader::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs#structtensorflow_1_1ops_1_1_text_line_reader_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_text_line_reader_1ab85e9d7259c373ad27fb3dddd606d03f) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [reader_handle](#classtensorflow_1_1ops_1_1_text_line_reader_1ac4ab46ef63e3cb743a68e39c4e11a609) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_text_line_reader_1a790db7925f50f5bc0571510dc97ab3a3)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_text_line_reader_1a7496b2588d4ceb8baffab128769c8434)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_text_line_reader_1a92aefc229676182bd1fbdde2d0907543)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [Container](#classtensorflow_1_1ops_1_1_text_line_reader_1a1b17fd2027469c3e6a649fb2df0e66e2)`(StringPiece x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs#structtensorflow_1_1ops_1_1_text_line_reader_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_text_line_reader_1ad4b36848bb237ab744e75cee38d09040)`(StringPiece x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs#structtensorflow_1_1ops_1_1_text_line_reader_1_1_attrs) |\n| [SkipHeaderLines](#classtensorflow_1_1ops_1_1_text_line_reader_1af30a762e73b55a5d4e14feaccd55d14e)`(int64 x)` | [Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs#structtensorflow_1_1ops_1_1_text_line_reader_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::TextLineReader::Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/text-line-reader/attrs) | Optional attribute setters for [TextLineReader](/versions/r2.2/api_docs/cc/class/tensorflow/ops/text-line-reader#classtensorflow_1_1ops_1_1_text_line_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### TextLineReader\n\n```gdscript\n TextLineReader(\n const ::tensorflow::Scope & scope\n)\n``` \n\n### TextLineReader\n\n```gdscript\n TextLineReader(\n const ::tensorflow::Scope & scope,\n const TextLineReader::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### SharedName\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n``` \n\n### SkipHeaderLines\n\n```text\nAttrs SkipHeaderLines(\n int64 x\n)\n```"]]