จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: สิ่งกีดขวางปิด:: คุณสมบัติ
#include <data_flow_ops.h>
ตัวตั้งค่าคุณลักษณะเพิ่มเติมสำหรับ BarrierClose
สรุป
งานสาธารณะ |
---|
CancelPendingEnqueues (bool x) | หากเป็นจริง คำขอที่รอดำเนินการทั้งหมดซึ่งถูกบล็อกในคิวของแผงกั้นจะถูกยกเลิก |
คุณลักษณะสาธารณะ
cancel_pending_enqueues_
bool tensorflow::ops::BarrierClose::Attrs::cancel_pending_enqueues_ = false
งานสาธารณะ
ยกเลิกรอคิว
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierClose::Attrs::CancelPendingEnqueues(
bool x
)
หากเป็นจริง คำขอที่รอดำเนินการทั้งหมดซึ่งถูกบล็อกในคิวของแผงกั้นจะถูกยกเลิก
InsertMany จะล้มเหลวแม้ว่าจะไม่มีการแนะนำรหัสใหม่ก็ตาม
ค่าเริ่มต้นเป็นเท็จ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::BarrierClose::Attrs Struct Reference\n\ntensorflow::ops::BarrierClose::Attrs\n====================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [BarrierClose](/versions/r1.15/api_docs/cc/class/tensorflow/ops/barrier-close#classtensorflow_1_1ops_1_1_barrier_close).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------------------|--------|\n| [cancel_pending_enqueues_](#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1ab1dc592b05a8bb3491a8230b43ea719c)` = false` | `bool` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CancelPendingEnqueues](#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1a40057f3edbb48bbc7756552300b69689)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier-close/attrs#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs) If true, all pending enqueue requests that are blocked on the barrier's queue will be canceled. |\n\nPublic attributes\n-----------------\n\n### cancel_pending_enqueues_\n\n```scdoc\nbool tensorflow::ops::BarrierClose::Attrs::cancel_pending_enqueues_ = false\n``` \n\nPublic functions\n----------------\n\n### CancelPendingEnqueues\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierClose::Attrs::CancelPendingEnqueues(\n bool x\n)\n``` \nIf true, all pending enqueue requests that are blocked on the barrier's queue will be canceled.\n\nInsertMany will fail, even if no new key is introduced.\n\nDefaults to false"]]