Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
aliran tensor:: operasi:: Pembaca Baris Teks
#include <io_ops.h>
Pembaca yang mengeluarkan baris file yang dibatasi oleh '
'.
Ringkasan
Argumen:
Atribut opsional (lihat Attrs
):
- skip_header_lines: Jumlah baris yang harus dilewati dari awal setiap file.
- wadah: Jika tidak kosong, pembaca ini ditempatkan di wadah yang diberikan. Jika tidak, wadah default akan digunakan.
- shared_name: Jika tidak kosong, pembaca ini diberi nama dalam keranjang yang diberikan dengan shared_name ini. Jika tidak, nama node akan digunakan sebagai gantinya.
Pengembalian:
-
Output
: Pegangan untuk mereferensikan Pembaca.
Atribut publik
operasi
Operation operation
pegangan_pembaca
::tensorflow::Output reader_handle
Fungsi publik
Pembaca Baris Teks
TextLineReader(
const ::tensorflow::Scope & scope
)
Pembaca Baris Teks
TextLineReader(
const ::tensorflow::Scope & scope,
const TextLineReader::Attrs & attrs
)
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Wadah
Attrs Container(
StringPiece x
)
Nama Bersama
Attrs SharedName(
StringPiece x
)
Attrs SkipHeaderLines(
int64 x
)
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 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```"]]