تدفق التوتر:: العمليات:: قائمة الانتظار
#include <data_flow_ops.h>
إغلاق قائمة الانتظار المحددة.
ملخص
تشير هذه العملية إلى أنه لن يتم إدراج المزيد من العناصر في قائمة الانتظار المحددة. ستفشل عمليات Enqueue(Many) اللاحقة. ستستمر عمليات Dequeue(Many) اللاحقة في النجاح إذا بقيت عناصر كافية في قائمة الانتظار. ستفشل عمليات Dequeue(Many) اللاحقة التي قد يتم حظرها على الفور.
الحجج:
- النطاق: كائن النطاق
- مقبض: مقبض قائمة الانتظار.
السمات الاختيارية (انظر Attrs
):
- Cancel_pending_enqueues: إذا كان صحيحًا، فسيتم إلغاء جميع طلبات قائمة الانتظار المعلقة المحظورة في قائمة الانتظار المحددة.
العوائد:
-
Operation
التي تم إنشاؤها
البنائين والمدمرين | |
---|---|
QueueClose (const :: tensorflow::Scope & scope, :: tensorflow::Input handle) | |
QueueClose (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, const QueueClose::Attrs & attrs) |
الصفات العامة | |
---|---|
operation |
الوظائف العامة | |
---|---|
operator::tensorflow::Operation () const |
وظائف ثابتة العامة | |
---|---|
CancelPendingEnqueues (bool x) |
الهياكل | |
---|---|
Tensorflow:: ops:: QueueClose:: Attrs | محددات السمات الاختيارية لـ QueueClose . |
الصفات العامة
عملية
Operation operation
الوظائف العامة
قائمة الانتظار
QueueClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle )
قائمة الانتظار
QueueClose( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, const QueueClose::Attrs & attrs )
المشغل::tensorflow::Operation
operator::tensorflow::Operation() const
وظائف ثابتة العامة
CancelPendingEnqueues
Attrs CancelPendingEnqueues( bool x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::QueueClose Class Reference\n\ntensorflow::ops::QueueClose\n===========================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nCloses the given queue.\n\nSummary\n-------\n\nThis operation signals that no more elements will be enqueued in the given queue. Subsequent Enqueue(Many) operations will fail. Subsequent Dequeue(Many) operations will continue to succeed if sufficient elements remain in the queue. Subsequent Dequeue(Many) operations that would block will fail immediately.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a queue.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-close/attrs#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs)):\n\n- cancel_pending_enqueues: If true, all pending enqueue requests that are blocked on the given queue will be canceled.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueClose](#classtensorflow_1_1ops_1_1_queue_close_1affd5807480aae31db63bf500e84c49f6)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle)` ||\n| [QueueClose](#classtensorflow_1_1ops_1_1_queue_close_1af1fb16eb680ceab18ea2d05dbaa832d6)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, const `[QueueClose::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-close/attrs#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_queue_close_1a7ef071ecc6a259c462a9df52160077e6) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_queue_close_1af4c0fa38ce928f7ba0f4511436335b4f)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| [CancelPendingEnqueues](#classtensorflow_1_1ops_1_1_queue_close_1a2df82e84083c2b54cccfad5f0d91ebcf)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-close/attrs#structtensorflow_1_1ops_1_1_queue_close_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueClose::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/queue-close/attrs) | Optional attribute setters for [QueueClose](/versions/r2.1/api_docs/cc/class/tensorflow/ops/queue-close#classtensorflow_1_1ops_1_1_queue_close). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueClose\n\n```gdscript\n QueueClose(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle\n)\n``` \n\n### QueueClose\n\n```gdscript\n QueueClose(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n const QueueClose::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### CancelPendingEnqueues\n\n```text\nAttrs CancelPendingEnqueues(\n bool x\n)\n```"]]