จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: สิ่งกีดขวาง:: คุณสมบัติ
#include <data_flow_ops.h>
ตัวตั้งค่าคุณลักษณะเสริมสำหรับ Barrier
สรุป
งานสาธารณะ |
---|
Capacity (int64 x) | ความจุของสิ่งกีดขวาง |
Container (StringPiece x) | หากไม่ว่างเปล่า สิ่งกีดขวางนี้จะถูกวางไว้ในภาชนะที่กำหนด |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | รูปร่างของแต่ละองค์ประกอบในค่า |
SharedName (StringPiece x) | หากไม่ว่างเปล่า อุปสรรคนี้จะถูกแชร์ภายใต้ชื่อที่กำหนดในหลายเซสชัน |
คุณลักษณะสาธารณะ
ความจุ_
int64 tensorflow::ops::Barrier::Attrs::capacity_ = -1
คอนเทนเนอร์_
StringPiece tensorflow::ops::Barrier::Attrs::container_ = ""
รูปร่าง_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::Barrier::Attrs::shapes_ = {}
shared_name_
StringPiece tensorflow::ops::Barrier::Attrs::shared_name_ = ""
งานสาธารณะ
ความจุ
TF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Capacity(
int64 x
)
ความจุของสิ่งกีดขวาง
ความจุเริ่มต้นคือ MAX_INT32 ซึ่งเป็นความจุที่ใหญ่ที่สุดของคิวพื้นฐาน
ค่าเริ่มต้นเป็น -1
คอนเทนเนอร์
TF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Container(
StringPiece x
)
หากไม่ว่างเปล่า สิ่งกีดขวางนี้จะถูกวางไว้ในภาชนะที่กำหนด
มิฉะนั้น จะใช้คอนเทนเนอร์เริ่มต้น
ค่าเริ่มต้นเป็น ""
รูปร่าง
TF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Shapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
รูปร่างของแต่ละองค์ประกอบในค่า
แต่ละรูปร่างต้องเป็น 1 ในมิติแรก ความยาวของ attr นี้จะต้องเท่ากับความยาวของ element_types
ค่าเริ่มต้นเป็น []
ชื่อที่ใช้ร่วมกัน
TF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::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::Barrier::Attrs Struct Reference\n\ntensorflow::ops::Barrier::Attrs\n===============================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [Barrier](/versions/r1.15/api_docs/cc/class/tensorflow/ops/barrier#classtensorflow_1_1ops_1_1_barrier).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a69050e8ab6942c26170a259770beb612)` = -1` | `int64` |\n| [container_](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a12a926ec571515bc3d7f263b29e80930)` = \"\"` | `StringPiece` |\n| [shapes_](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a9427afb384416c3b614e93464421d3d2)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1aa08c6738f5454d724dea56d2f412f773)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1af3bd6950840f3ff42a55315285da416f)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs) The capacity of the barrier. |\n| [Container](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a9efc1dc034650d56b150d89cb7867450)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs) If non-empty, this barrier is placed in the given container. |\n| [Shapes](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a418b729afcfe333b28907730793ffd60)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs) The shape of each component in a value. |\n| [SharedName](#structtensorflow_1_1ops_1_1_barrier_1_1_attrs_1a81b69b1d5a7eaaa0aa32c6e19af28c5b)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier/attrs#structtensorflow_1_1ops_1_1_barrier_1_1_attrs) If non-empty, this barrier will be shared under the given name across multiple sessions. |\n\nPublic attributes\n-----------------\n\n### capacity_\n\n```scdoc\nint64 tensorflow::ops::Barrier::Attrs::capacity_ = -1\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::Barrier::Attrs::container_ = \"\"\n``` \n\n### shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::Barrier::Attrs::shapes_ = {}\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::Barrier::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Capacity(\n int64 x\n)\n``` \nThe capacity of the barrier.\n\nThe default capacity is MAX_INT32, which is the largest capacity of the underlying queue.\n\nDefaults to -1 \n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this barrier 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::Barrier::Attrs::Shapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nThe shape of each component in a value.\n\nEach shape must be 1 in the first dimension. The length of this attr must be the same as the length of component_types.\n\nDefaults to \\[\\] \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Barrier::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this barrier will be shared under the given name across multiple sessions.\n\nDefaults to \"\""]]