جریان تنسور:: عملیات:: ReaderRead
#include <io_ops.h>
رکورد بعدی (کلید، جفت مقدار) تولید شده توسط Reader را برمی گرداند.
خلاصه
در صورت لزوم از صف ورودی خارج میشود (مثلاً زمانی که Reader باید از یک فایل جدید شروع به خواندن کند، زیرا با فایل قبلی تمام شده است).
استدلال ها:
- scope: یک شی Scope
- reader_handle: Handle to a Reader.
- queue_handle: دسته به یک صف، با موارد کار رشته.
برمیگرداند:
سازندگان و ویرانگرها | |
---|---|
ReaderRead (const :: tensorflow::Scope & scope, :: tensorflow::Input reader_handle, :: tensorflow::Input queue_handle) |
صفات عمومی | |
---|---|
key | |
operation | |
value |
صفات عمومی
کلید
::tensorflow::Output key
عملیات
Operation operation
ارزش
::tensorflow::Output value
توابع عمومی
ReaderRead
ReaderRead( const ::tensorflow::Scope & scope, ::tensorflow::Input reader_handle, ::tensorflow::Input queue_handle )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::ReaderRead Class Reference\n\ntensorflow::ops::ReaderRead\n===========================\n\n`#include \u003cio_ops.h\u003e`\n\nReturns the next record (key, value pair) 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).\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\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) key: A scalar.\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) value: A scalar.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ReaderRead](#classtensorflow_1_1ops_1_1_reader_read_1a7d1eef47d4a87dceeded2d6750e7cb0e)`(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)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [key](#classtensorflow_1_1ops_1_1_reader_read_1a0d1111765b2bd6b3cbab0cbe8fe599f5) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_reader_read_1af68b5bdc62c28936b77f59faa6864a47) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [value](#classtensorflow_1_1ops_1_1_reader_read_1a80683cdf25825be1e931e1def4ac07bb) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\nPublic attributes\n-----------------\n\n### key\n\n```text\n::tensorflow::Output key\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### value\n\n```text\n::tensorflow::Output value\n``` \n\nPublic functions\n----------------\n\n### ReaderRead\n\n```gdscript\n ReaderRead(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input reader_handle,\n ::tensorflow::Input queue_handle\n)\n```"]]