tensorflow::ops::QueueDequeue
#include <data_flow_ops.h>ดึงทูเปิลที่มีเทนเซอร์ตั้งแต่หนึ่งตัวขึ้นไปออกจากคิวที่กำหนด
สรุป
การดำเนินการนี้มีผลลัพธ์ k รายการ โดยที่ k คือจำนวนส่วนประกอบในทูเปิลที่เก็บไว้ในคิวที่กำหนด และผลลัพธ์ i คือส่วนประกอบที่ i ของทูเปิลที่ดึงออกจากคิว
หมายเหตุ: หากคิวว่างเปล่า การดำเนินการนี้จะบล็อกจนกว่าจะมีการดึงองค์ประกอบออกจากคิว (หรือจนกว่าจะครบ 'timeout_ms' หากมีการระบุไว้)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- handle: ส่วนหัวของคิว
- component_types: ประเภทของแต่ละคอมโพเนนต์ในรูปแบบทูเปิล
คุณลักษณะเสริม (ดูที่ Attrs ):
- timeout_ms: หากคิวว่างเปล่า การดำเนินการนี้จะบล็อกเป็นเวลาสูงสุด timeout_ms มิลลิวินาที หมายเหตุ: ตัวเลือกนี้ยังไม่ได้รับการสนับสนุนในขณะนี้
การส่งคืนสินค้า:
-
OutputList: เทนเซอร์อย่างน้อยหนึ่งรายการที่ถูกดึงออกจากคิวในรูปแบบทูเปิล
ตัวสร้างและตัวทำลาย | |
|---|---|
QueueDequeue (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, const DataTypeSlice & component_types) | |
QueueDequeue (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, const DataTypeSlice & component_types, const QueueDequeue::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
components | |
operation | |
หน้าที่สาธารณะ | |
|---|---|
operator[] (size_t index) const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
TimeoutMs (int64 x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::QueueDequeue::Attrs | ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ QueueDequeue |
คุณลักษณะสาธารณะ
ส่วนประกอบ
::tensorflow::OutputList components
การดำเนินการ
Operation operation
หน้าที่สาธารณะ
คิวและดีคิว
QueueDequeue( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const DataTypeSlice & component_types )
คิวและดีคิว
QueueDequeue( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const DataTypeSlice & component_types, const QueueDequeue::Attrs & attrs )
ผู้ดำเนินการ[]
::tensorflow::Output operator[]( size_t index ) const
ฟังก์ชันคงที่สาธารณะ
หมดเวลา (มิลลิวินาที)
Attrs TimeoutMs( int64 x )