Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: OkuyucuReadUpTo
#include <io_ops.h>
Reader tarafından üretilen num_records
(anahtar, değer) çiftini döndürür.
Özet
Gerektiğinde giriş kuyruğundan çıkar (örneğin, Reader'ın önceki dosyayla işi bittiğinden beri yeni bir dosyadan okumaya başlaması gerektiğinde). Son gruptan önce bile num_records
daha azını döndürebilir.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Reader_handle:
Reader
işleyin. - kuyruk_handle: Dize çalışma öğeleriyle birlikte bir
Queue
işleyici. - num_records:
Reader
okunacak kayıt sayısı.
İade:
-
Output
tuşları: 1-D tensör. -
Output
değerleri: 1 boyutlu bir tensör.
Genel özellikler
Kamu işlevleri
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-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::ReaderReadUpTo Class Reference\n\ntensorflow::ops::ReaderReadUpTo\n===============================\n\n`#include \u003cio_ops.h\u003e`\n\nReturns up to `num_records` (key, value) pairs produced by a Reader.\n\nSummary\n-------\n\nWill dequeue from the input queue if necessary (e.g. when the Reader needs to start reading from a new file since it has finished with the previous file). It may return less than `num_records` even before the last batch.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- reader_handle: Handle to a `Reader`.\n- queue_handle: Handle to a `Queue`, with string work items.\n- num_records: number of records to read from `Reader`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) keys: A 1-D tensor.\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) values: A 1-D tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ReaderReadUpTo](#classtensorflow_1_1ops_1_1_reader_read_up_to_1a2ec15832620e45ab0ea0a17f650cb1f5)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reader_handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` queue_handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` num_records)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [keys](#classtensorflow_1_1ops_1_1_reader_read_up_to_1af7a8295467508f82a27607fc8f67ed71) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_reader_read_up_to_1a5b7389ad7ab4f4d1dc2c976d3dd52e9e) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [values](#classtensorflow_1_1ops_1_1_reader_read_up_to_1abb8bf94a488824b08dc38f935f62a0be) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\nPublic attributes\n-----------------\n\n### keys\n\n```text\n::tensorflow::Output keys\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### values\n\n```text\n::tensorflow::Output values\n``` \n\nPublic functions\n----------------\n\n### ReaderReadUpTo\n\n```gdscript\n ReaderReadUpTo(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input reader_handle,\n ::tensorflow::Input queue_handle,\n ::tensorflow::Input num_records\n)\n```"]]