Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: Tüm Dosya Okuyucusu
#include <io_ops.h>
Bir dosyanın tüm içeriğini değer olarak çıkaran bir Reader.
Özet
Kullanmak için dosya adlarını bir Kuyrukta sıraya alın. ReaderRead'in çıktısı bir dosya adı (anahtar) ve bu dosyanın içeriği (değer) olacaktır.
Argümanlar:
İsteğe bağlı özellikler (bkz. Attrs
):
- konteyner: Boş değilse bu okuyucu verilen konteynere yerleştirilir. Aksi halde varsayılan kapsayıcı kullanılır.
- paylaşılan_adı: Boş değilse, bu okuyucu verilen pakette bu paylaşılan_adla adlandırılır. Aksi takdirde bunun yerine düğüm adı kullanılır.
İade:
-
Output
: Reader'a başvuruda bulunacak tutamaç.
Genel özellikler
Kamu işlevleri
düğüm
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Konteyner
Attrs Container(
StringPiece x
)
Paylaşılan Ad
Attrs SharedName(
StringPiece x
)
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# tensorflow::ops::WholeFileReader Class Reference\n\ntensorflow::ops::WholeFileReader\n================================\n\n`#include \u003cio_ops.h\u003e`\n\nA Reader that outputs the entire contents of a file as a value.\n\nSummary\n-------\n\nTo use, enqueue filenames in a Queue. The output of [ReaderRead](/versions/r2.1/api_docs/cc/class/tensorflow/ops/reader-read#classtensorflow_1_1ops_1_1_reader_read) will be a filename (key) and the contents of that file (value).\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/whole-file-reader/attrs#structtensorflow_1_1ops_1_1_whole_file_reader_1_1_attrs)):\n\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.1/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| [WholeFileReader](#classtensorflow_1_1ops_1_1_whole_file_reader_1aa1c35e8f2f8352797b9635b77952f9f9)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope)` ||\n| [WholeFileReader](#classtensorflow_1_1ops_1_1_whole_file_reader_1a4ef11c8797d61f84a2006db95b3735d3)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const `[WholeFileReader::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/whole-file-reader/attrs#structtensorflow_1_1ops_1_1_whole_file_reader_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_whole_file_reader_1a37159601213425dd37c195f248d27ec1) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [reader_handle](#classtensorflow_1_1ops_1_1_whole_file_reader_1aeecefa6b0f7149b7b3d9af80215b13ae) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_whole_file_reader_1abd539b43fd56442e781fb8ae6af63bcf)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_whole_file_reader_1a176481a380ea4825ffe11d39c0c6d8bb)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_whole_file_reader_1a702306e6cf489bc32853e0a0c6e55213)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [Container](#classtensorflow_1_1ops_1_1_whole_file_reader_1a5553b44d78c95d99cf2af758cd8d6c38)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/whole-file-reader/attrs#structtensorflow_1_1ops_1_1_whole_file_reader_1_1_attrs) |\n| [SharedName](#classtensorflow_1_1ops_1_1_whole_file_reader_1a2d7be816e6afd9942179871198154699)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/whole-file-reader/attrs#structtensorflow_1_1ops_1_1_whole_file_reader_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::WholeFileReader::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/whole-file-reader/attrs) | Optional attribute setters for [WholeFileReader](/versions/r2.1/api_docs/cc/class/tensorflow/ops/whole-file-reader#classtensorflow_1_1ops_1_1_whole_file_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### WholeFileReader\n\n```gdscript\n WholeFileReader(\n const ::tensorflow::Scope & scope\n)\n``` \n\n### WholeFileReader\n\n```gdscript\n WholeFileReader(\n const ::tensorflow::Scope & scope,\n const WholeFileReader::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```"]]