จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ลำดับความสำคัญ:: คุณสมบัติ
#include <data_flow_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ PriorityQueue
สรุป
งานสาธารณะ |
---|
Capacity (int64 x) | ขอบเขตบนของจำนวนองค์ประกอบในคิวนี้ |
ComponentTypes (const DataTypeSlice & x) | ประเภทของแต่ละองค์ประกอบในค่า |
Container (StringPiece x) | หากไม่ว่างเปล่า คิวนี้จะถูกวางไว้ในคอนเทนเนอร์ที่กำหนด |
SharedName (StringPiece x) | หากไม่ว่างเปล่า คิวนี้จะถูกแชร์ภายใต้ชื่อที่กำหนดในหลายเซสชัน |
คุณลักษณะสาธารณะ
ความจุ_
int64 tensorflow::ops::PriorityQueue::Attrs::capacity_ = -1
ส่วนประกอบ_ประเภท_
DataTypeSlice tensorflow::ops::PriorityQueue::Attrs::component_types_ = {}
คอนเทนเนอร์_
StringPiece tensorflow::ops::PriorityQueue::Attrs::container_ = ""
shared_name_
StringPiece tensorflow::ops::PriorityQueue::Attrs::shared_name_ = ""
งานสาธารณะ
ความจุ
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Capacity(
int64 x
)
ขอบเขตบนของจำนวนองค์ประกอบในคิวนี้
ตัวเลขติดลบหมายถึงไม่มีขีดจำกัด
ค่าเริ่มต้นเป็น -1
ประเภทส่วนประกอบ
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::ComponentTypes(
const DataTypeSlice & x
)
ประเภทของแต่ละองค์ประกอบในค่า
ค่าเริ่มต้นเป็น []
คอนเทนเนอร์
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Container(
StringPiece x
)
หากไม่ว่างเปล่า คิวนี้จะถูกวางไว้ในคอนเทนเนอร์ที่กำหนด
มิฉะนั้น จะใช้คอนเทนเนอร์เริ่มต้น
ค่าเริ่มต้นเป็น ""
ชื่อที่ใช้ร่วมกัน
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::SharedName(
StringPiece x
)
หากไม่ว่างเปล่า คิวนี้จะถูกแชร์ภายใต้ชื่อที่กำหนดในหลายเซสชัน
ค่าเริ่มต้นเป็น ""
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::PriorityQueue::Attrs Struct Reference\n\ntensorflow::ops::PriorityQueue::Attrs\n=====================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [PriorityQueue](/versions/r1.15/api_docs/cc/class/tensorflow/ops/priority-queue#classtensorflow_1_1ops_1_1_priority_queue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|-----------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aa65ffe44dc2714109f19e52992569fec)` = -1` | `int64` |\n| [component_types_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aa839a218bb8127538e1149e179d2acd4)` = {}` | `DataTypeSlice` |\n| [container_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a963c0211187034f0a378b5156205d87d)` = \"\"` | `StringPiece` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a5499e28c72d1d604fabb04d1d18d45d5)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aae9a59255a2ba82121cf2ac12fb3be6b)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) The upper bound on the number of elements in this queue. |\n| [ComponentTypes](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aeecbf3906b679e8d2947a6da73dcbebe)`(const DataTypeSlice & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) The type of each component in a value. |\n| [Container](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1ab62e40df0008369c3717067be30e9f80)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) If non-empty, this queue is placed in the given container. |\n| [SharedName](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a0c6e77bf1243bca2aad8a9b695ed47cb)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) If non-empty, this queue will be shared under the given name across multiple sessions. |\n\nPublic attributes\n-----------------\n\n### capacity_\n\n```scdoc\nint64 tensorflow::ops::PriorityQueue::Attrs::capacity_ = -1\n``` \n\n### component_types_\n\n```carbon\nDataTypeSlice tensorflow::ops::PriorityQueue::Attrs::component_types_ = {}\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::PriorityQueue::Attrs::container_ = \"\"\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::PriorityQueue::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Capacity(\n int64 x\n)\n``` \nThe upper bound on the number of elements in this queue.\n\nNegative numbers mean no limit.\n\nDefaults to -1 \n\n### ComponentTypes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::ComponentTypes(\n const DataTypeSlice & x\n)\n``` \nThe type of each component in a value.\n\nDefaults to \\[\\] \n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this queue is placed in the given container.\n\nOtherwise, a default container is used.\n\nDefaults to \"\" \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this queue will be shared under the given name across multiple sessions.\n\nDefaults to \"\""]]