จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: FIFOคิว:: คุณสมบัติ
#include <data_flow_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ FIFOQueue
สรุป
งานสาธารณะ |
---|
Capacity (int64 x) | ขอบเขตบนของจำนวนองค์ประกอบในคิวนี้ |
Container (StringPiece x) | หากไม่ว่างเปล่า คิวนี้จะถูกวางไว้ในคอนเทนเนอร์ที่กำหนด |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | รูปร่างของแต่ละองค์ประกอบในค่า |
SharedName (StringPiece x) | หากไม่ว่างเปล่า คิวนี้จะถูกแชร์ภายใต้ชื่อที่กำหนดในหลายเซสชัน |
คุณลักษณะสาธารณะ
ความจุ_
int64 tensorflow::ops::FIFOQueue::Attrs::capacity_ = -1
คอนเทนเนอร์_
StringPiece tensorflow::ops::FIFOQueue::Attrs::container_ = ""
รูปร่าง_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::FIFOQueue::Attrs::shapes_ = {}
shared_name_
StringPiece tensorflow::ops::FIFOQueue::Attrs::shared_name_ = ""
งานสาธารณะ
ความจุ
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Capacity(
int64 x
)
ขอบเขตบนของจำนวนองค์ประกอบในคิวนี้
ตัวเลขติดลบหมายถึงไม่มีขีดจำกัด
ค่าเริ่มต้นเป็น -1
คอนเทนเนอร์
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Container(
StringPiece x
)
หากไม่ว่างเปล่า คิวนี้จะถูกวางไว้ในคอนเทนเนอร์ที่กำหนด
มิฉะนั้น จะใช้คอนเทนเนอร์เริ่มต้น
ค่าเริ่มต้นเป็น ""
รูปร่าง
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Shapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
รูปร่างของแต่ละองค์ประกอบในค่า
ความยาวของ attr นี้ต้องเป็น 0 หรือเท่ากับความยาวของ component_types หากความยาวของ attr นี้เป็น 0 รูปร่างขององค์ประกอบคิวจะไม่ถูกจำกัด และมีเพียงองค์ประกอบเดียวเท่านั้นที่สามารถแยกออกจากคิวได้ในแต่ละครั้ง
ค่าเริ่มต้นเป็น []
ชื่อที่ใช้ร่วมกัน
TF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::SharedName(
StringPiece x
)
หากไม่ว่างเปล่า คิวนี้จะถูกแชร์ภายใต้ชื่อที่กำหนดในหลายเซสชัน
ค่าเริ่มต้นเป็น ""
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# tensorflow::ops::FIFOQueue::Attrs Struct Reference\n\ntensorflow::ops::FIFOQueue::Attrs\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [FIFOQueue](/versions/r2.3/api_docs/cc/class/tensorflow/ops/f-i-f-o-queue#classtensorflow_1_1ops_1_1_f_i_f_o_queue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1ae28ec14fda16522f12c863523082d344)` = -1` | `int64` |\n| [container_](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a3cad0c924b508b6f992b119b773808a7)` = \"\"` | `StringPiece` |\n| [shapes_](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a14c5fe53dc9b7ac9c4a2d74ded350a87)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a6969cd51d4824a259e92cbc90c3d0c06)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a4a786bc68c2732d8e0d72b2c382101f5)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs) The upper bound on the number of elements in this queue. |\n| [Container](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1afcf423b907d26985fab5863459b4bd1b)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs) If non-empty, this queue is placed in the given container. |\n| [Shapes](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1a77e50ffbad8726bd7f8a7aeec309bf6e)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs) The shape of each component in a value. |\n| [SharedName](#structtensorflow_1_1ops_1_1_f_i_f_o_queue_1_1_attrs_1aa45a52efc11ffde51babdec6ffc57872)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/f-i-f-o-queue/attrs#structtensorflow_1_1ops_1_1_f_i_f_o_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::FIFOQueue::Attrs::capacity_ = -1\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::FIFOQueue::Attrs::container_ = \"\"\n``` \n\n### shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::FIFOQueue::Attrs::shapes_ = {}\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::FIFOQueue::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::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### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::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### Shapes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::Attrs::Shapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nThe shape of each component in a value.\n\nThe length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.\n\nDefaults to \\[\\] \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::FIFOQueue::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 \"\""]]