จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: คิวเข้าคิวหลายคน
#include <data_flow_ops.h>
จัดคิวสิ่งอันดับศูนย์หรือมากกว่าของเทนเซอร์ตั้งแต่หนึ่งตัวขึ้นไปในคิวที่กำหนด
สรุป
การดำเนินการนี้จะแบ่งส่วนประกอบเทนเซอร์แต่ละส่วนตามมิติที่ 0 เพื่อสร้างองค์ประกอบคิวหลายรายการ ส่วนประกอบทูเพิล ทั้งหมด จะต้องมีขนาดเท่ากันในมิติที่ 0
อินพุตส่วนประกอบมีองค์ประกอบ k ซึ่งสอดคล้องกับส่วนประกอบของสิ่งอันดับที่เก็บอยู่ในคิวที่กำหนด
หมายเหตุ หากคิวเต็ม การดำเนินการนี้จะบล็อกจนกว่าองค์ประกอบที่กำหนดจะถูกจัดคิว (หรือ 'timeout_ms' ผ่านไป หากระบุไว้)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- หมายเลขอ้างอิง: หมายเลขอ้างอิงของคิว
- ส่วนประกอบ: เทนเซอร์ตั้งแต่หนึ่งตัวขึ้นไปซึ่งควรใช้เทนเซอร์ที่เข้าคิว
แอ็ตทริบิวต์ทางเลือก (ดู Attrs
):
- timeout_ms: หากคิวเต็มเกินไป การดำเนินการนี้จะบล็อกนานถึง timeout_ms มิลลิวินาที หมายเหตุ: ยังไม่รองรับตัวเลือกนี้
ผลตอบแทน:
คุณลักษณะสาธารณะ
งานสาธารณะ
ตัวดำเนินการ::tensorflow::การทำงาน
operator::tensorflow::Operation() const
ฟังก์ชันคงที่สาธารณะ
หมดเวลาMs
Attrs TimeoutMs(
int64 x
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::QueueEnqueueMany Class Reference\n\ntensorflow::ops::QueueEnqueueMany\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nEnqueues zero or more tuples of one or more tensors in the given queue.\n\nSummary\n-------\n\nThis operation slices each component tensor along the 0th dimension to make multiple queue elements. [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) of the tuple components must have the same size in the 0th dimension.\n\nThe components input has k elements, which correspond to the components of tuples stored in the given queue.\n\nN.B. If the queue is full, this operation will block until the given elements have been enqueued (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- components: One or more tensors from which the enqueued tensors should be taken.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs)):\n\n- timeout_ms: If the queue is too full, 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- the created [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueEnqueueMany](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1a5ecdf3e3a6258d96aead53f0a7dd978d)`(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, ::`[tensorflow::InputList](/versions/r1.15/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components)` ||\n| [QueueEnqueueMany](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1afefa06b2fa7cccfdcadef27efed52358)`(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, ::`[tensorflow::InputList](/versions/r1.15/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` components, const `[QueueEnqueueMany::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1a446ef8eb2cfb77152f2bdb7478c31824) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1a884681259cd800fb78503ea825852430)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#classtensorflow_1_1ops_1_1_queue_enqueue_many_1ae1ceaf22a97e82b627c27817a388c723)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs#structtensorflow_1_1ops_1_1_queue_enqueue_many_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueEnqueueMany::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-enqueue-many/attrs) | Optional attribute setters for [QueueEnqueueMany](/versions/r1.15/api_docs/cc/class/tensorflow/ops/queue-enqueue-many#classtensorflow_1_1ops_1_1_queue_enqueue_many). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueEnqueueMany\n\n```gdscript\n QueueEnqueueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components\n)\n``` \n\n### QueueEnqueueMany\n\n```gdscript\n QueueEnqueueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::InputList components,\n const QueueEnqueueMany::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### TimeoutMs\n\n```text\nAttrs TimeoutMs(\n int64 x\n)\n```"]]