tensorflow:: אופס:: תור סגור:: Attrs
#include <data_flow_ops.h>
קובעי תכונות אופציונליים עבור QueueClose .
תַקצִיר
תכונות ציבוריות | |
---|---|
cancel_pending_enqueues_ = false | bool |
תפקידים ציבוריים | |
---|---|
CancelPendingEnqueues (bool x) | TF_MUST_USE_RESULT Attrs אם זה נכון, כל בקשות התור הממתינות וחסומות בתור הנתון יבוטלו. |
תכונות ציבוריות
cancel_pending_enqueues_
bool tensorflow::ops::QueueClose::Attrs::cancel_pending_enqueues_ = false
תפקידים ציבוריים
בטל תורים בהמתנה
TF_MUST_USE_RESULT Attrs tensorflow::ops::QueueClose::Attrs::CancelPendingEnqueues( bool x )
אם זה נכון, כל בקשות התור הממתינות וחסומות בתור הנתון יבוטלו.
ברירת המחדל ל-false
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::QueueClose::Attrs Struct Reference\n\ntensorflow::ops::QueueClose::Attrs\n==================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [QueueClose](/versions/r2.3/api_docs/cc/class/tensorflow/ops/queue-close#classtensorflow_1_1ops_1_1_queue_close).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------------------------|--------|\n| [cancel_pending_enqueues_](#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs_1a4f65e814e9ccf5bb93dbc6684967079a)` = false` | `bool` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CancelPendingEnqueues](#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs_1a6df78312f774a666b651320ee188550b)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/queue-close/attrs#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs) If true, all pending enqueue requests that are blocked on the given queue will be canceled. |\n\nPublic attributes\n-----------------\n\n### cancel_pending_enqueues_\n\n```scdoc\nbool tensorflow::ops::QueueClose::Attrs::cancel_pending_enqueues_ = false\n``` \n\nPublic functions\n----------------\n\n### CancelPendingEnqueues\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::QueueClose::Attrs::CancelPendingEnqueues(\n bool x\n)\n``` \nIf true, all pending enqueue requests that are blocked on the given queue will be canceled.\n\nDefaults to false"]]