تدفق التوتر:: العمليات:: ريدرريدوبتو
#include <io_ops.h>
يُرجع ما يصل إلى num_records
(المفتاح، القيمة) من أزواج التي تم إنتاجها بواسطة القارئ.
ملخص
سيتم فصله من قائمة انتظار الإدخال إذا لزم الأمر (على سبيل المثال، عندما يحتاج القارئ إلى بدء القراءة من ملف جديد بعد الانتهاء من الملف السابق). وقد يُرجع أقل من num_records
حتى قبل الدفعة الأخيرة.
الحجج:
- النطاق: كائن النطاق
- Reader_handle: التعامل مع
Reader
. - queue_handle: التعامل مع
Queue
، مع عناصر العمل المتسلسلة. - num_records: عدد السجلات المطلوب قراءتها من
Reader
.
العوائد:
البنائين والمدمرين | |
---|---|
ReaderReadUpTo (const :: tensorflow::Scope & scope, :: tensorflow::Input reader_handle, :: tensorflow::Input queue_handle, :: tensorflow::Input num_records) |
الصفات العامة | |
---|---|
keys | |
operation | |
values |
الصفات العامة
مفاتيح
::tensorflow::Output keys
عملية
Operation operation
قيم
::tensorflow::Output values
الوظائف العامة
ريدرريدوبتو
ReaderReadUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle, ::tensorflow::Input queue_handle, ::tensorflow::Input num_records )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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/r2.3/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/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) keys: A 1-D tensor.\n- [Output](/versions/r2.3/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/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reader_handle, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` queue_handle, ::`[tensorflow::Input](/versions/r2.3/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/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_reader_read_up_to_1a5b7389ad7ab4f4d1dc2c976d3dd52e9e) | [Operation](/versions/r2.3/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/r2.3/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```"]]