จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: QueueDequeue
#include <data_flow_ops.h>
แยกคิวทูเพิลของเทนเซอร์ตั้งแต่หนึ่งตัวขึ้นไปออกจากคิวที่กำหนด
สรุป
การดำเนินการนี้มีเอาต์พุต k โดยที่ k คือจำนวนส่วนประกอบในทูเพิลที่จัดเก็บไว้ในคิวที่กำหนด และเอาต์พุต i คือองค์ประกอบที่ i ของทูเพิลที่แยกออกจากคิว
หมายเหตุ หากคิวว่างเปล่า การดำเนินการนี้จะบล็อกจนกว่าองค์ประกอบจะถูกถอนคิว (หรือ 'timeout_ms' ผ่านไป หากระบุไว้)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- หมายเลขอ้างอิง: หมายเลขอ้างอิงของคิว
- component_types: ประเภทของแต่ละองค์ประกอบในทูเพิล
แอ็ตทริบิวต์ทางเลือก (ดู Attrs
):
- timeout_ms: หากคิวว่างเปล่า การดำเนินการนี้จะบล็อกนานถึง timeout_ms มิลลิวินาที หมายเหตุ: ยังไม่รองรับตัวเลือกนี้
ผลตอบแทน:
-
OutputList
: เทนเซอร์อย่างน้อยหนึ่งตัวที่ถูกแยกออกจากคิวเป็นสิ่งทูเพิล
คุณลักษณะสาธารณะ
งานสาธารณะ
ฟังก์ชันคงที่สาธารณะ
หมดเวลาMs
Attrs TimeoutMs(
int64 x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::QueueDequeue Class Reference\n\ntensorflow::ops::QueueDequeue\n=============================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nDequeues a tuple of one or more tensors from the given queue.\n\nSummary\n-------\n\nThis operation has k outputs, where k is the number of components in the tuples stored in the given queue, and output i is the ith component of the dequeued tuple.\n\nN.B. If the queue is empty, this operation will block until an element has been dequeued (or 'timeout_ms' elapses, if specified).\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a queue.\n- component_types: The type of each component in a tuple.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs)):\n\n- timeout_ms: If the queue is empty, this operation will block for up to timeout_ms milliseconds. Note: This option is not supported yet.\n\n\u003cbr /\u003e\n\nReturns:\n\n- `OutputList`: One or more tensors that were dequeued as a tuple.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueDequeue](#classtensorflow_1_1ops_1_1_queue_dequeue_1a62ecaf858cb38bae134e075e91560201)`(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)` handle, const DataTypeSlice & component_types)` ||\n| [QueueDequeue](#classtensorflow_1_1ops_1_1_queue_dequeue_1a7e6e32c8f0de0748262a87379f34d80f)`(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)` handle, const DataTypeSlice & component_types, const `[QueueDequeue::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [components](#classtensorflow_1_1ops_1_1_queue_dequeue_1add6442c38a956524521d2dc78b0392bd) | `::`[tensorflow::OutputList](/versions/r1.15/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [operation](#classtensorflow_1_1ops_1_1_queue_dequeue_1a0cc196f365364b3cb85ad67b926c6320) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operator[]](#classtensorflow_1_1ops_1_1_queue_dequeue_1adab23cc206d2a2d84d80cb9cbaaab043)`(size_t index) const ` | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#classtensorflow_1_1ops_1_1_queue_dequeue_1a369b19de112a05e7793c51bd74ae6e43)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueDequeue::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue/attrs) | Optional attribute setters for [QueueDequeue](/versions/r1.15/api_docs/cc/class/tensorflow/ops/queue-dequeue#classtensorflow_1_1ops_1_1_queue_dequeue). |\n\nPublic attributes\n-----------------\n\n### components\n\n```text\n::tensorflow::OutputList components\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueDequeue\n\n```gdscript\n QueueDequeue(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n const DataTypeSlice & component_types\n)\n``` \n\n### QueueDequeue\n\n```gdscript\n QueueDequeue(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n const DataTypeSlice & component_types,\n const QueueDequeue::Attrs & attrs\n)\n``` \n\n### operator\\[\\]\n\n```gdscript\n::tensorflow::Output operator[](\n size_t index\n) const \n``` \n\nPublic static functions\n-----------------------\n\n### TimeoutMs\n\n```text\nAttrs TimeoutMs(\n int64 x\n)\n```"]]