संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: क्यूडेक्यूमेनी
#include <data_flow_ops.h>
दी गई कतार से एक या अधिक टेंसरों के n
टुपल्स को हटाता है।
सारांश
यदि कतार बंद है और n
से कम तत्व हैं, तो एक आउटऑफ़रेंज त्रुटि लौटा दी जाती है।
यह ऑपरेशन एकल घटक टेंसर बनाने के लिए 0वें आयाम के साथ कतार-तत्व घटक टेंसरों को जोड़ता है। पंक्तिबद्ध टुपल के सभी घटकों का आकार 0वें आयाम में n
होगा।
इस ऑपरेशन में k
आउटपुट हैं, जहां k
दिए गए कतार में संग्रहीत टुपल्स में घटकों की संख्या है, और आउटपुट i
डीक्यू किए गए टुपल का ith घटक है।
एनबी यदि कतार खाली है, तो यह ऑपरेशन तब तक अवरुद्ध रहेगा जब तक कि n
तत्वों को हटा नहीं दिया जाता (या निर्दिष्ट होने पर 'टाइमआउट_एमएस' समाप्त हो जाता है)।
तर्क:
- स्कोप: एक स्कोप ऑब्जेक्ट
- हैंडल: एक कतार का हैंडल।
- n: कतार से हटाने के लिए टुपल्स की संख्या।
- घटक_प्रकार: टुपल में प्रत्येक घटक का प्रकार।
वैकल्पिक विशेषताएँ (देखें Attrs
):
- टाइमआउट_एमएस: यदि कतार में एन से कम तत्व हैं, तो यह ऑपरेशन टाइमआउट_एमएस मिलीसेकंड तक ब्लॉक हो जाएगा। नोट: यह विकल्प अभी तक समर्थित नहीं है.
रिटर्न:
-
OutputList
: एक या अधिक टेंसर जिन्हें टपल के रूप में पंक्तिबद्ध किया गया था।
सार्वजनिक गुण
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::QueueDequeueMany Class Reference\n\ntensorflow::ops::QueueDequeueMany\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nDequeues `n` tuples of one or more tensors from the given queue.\n\nSummary\n-------\n\nIf the queue is closed and there are fewer than `n` elements, then an OutOfRange error is returned.\n\nThis operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) of the components in the dequeued tuple will have size `n` in the 0th dimension.\n\nThis operation has `k` outputs, where `k` is the number of components in the tuples stored in the given queue, and output `i` is the ith component of the dequeued tuple.\n\nN.B. If the queue is empty, this operation will block until `n` elements have been dequeued (or 'timeout_ms' elapses, if specified).\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a queue.\n- n: The number of tuples to dequeue.\n- component_types: The type of each component in a tuple.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue-many/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_many_1_1_attrs)):\n\n- timeout_ms: If the queue has fewer than n elements, this operation will block for up to timeout_ms milliseconds. Note: This option is not supported yet.\n\n\u003cbr /\u003e\n\nReturns:\n\n- `OutputList`: One or more tensors that were dequeued as a tuple.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [QueueDequeueMany](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1af0787d738d8e5c2f19921973db8e2481)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` n, const DataTypeSlice & component_types)` ||\n| [QueueDequeueMany](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1a8d1c93762d52332bf32cf0affcf42447)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` n, const DataTypeSlice & component_types, const `[QueueDequeueMany::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue-many/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_many_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [components](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1ad008417bd88a61cc3561b12b2655e192) | `::`[tensorflow::OutputList](/versions/r1.15/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [operation](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1a8022cd22dda1a2ece65d36a11766035d) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operator[]](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1a3b9da4a9019f580bd27704d37043f875)`(size_t index) const ` | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [TimeoutMs](#classtensorflow_1_1ops_1_1_queue_dequeue_many_1ada0815fe9735c5da0a6192a13c574ee2)`(int64 x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue-many/attrs#structtensorflow_1_1ops_1_1_queue_dequeue_many_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::QueueDequeueMany::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/queue-dequeue-many/attrs) | Optional attribute setters for [QueueDequeueMany](/versions/r1.15/api_docs/cc/class/tensorflow/ops/queue-dequeue-many#classtensorflow_1_1ops_1_1_queue_dequeue_many). |\n\nPublic attributes\n-----------------\n\n### components\n\n```text\n::tensorflow::OutputList components\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### QueueDequeueMany\n\n```gdscript\n QueueDequeueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input n,\n const DataTypeSlice & component_types\n)\n``` \n\n### QueueDequeueMany\n\n```gdscript\n QueueDequeueMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input n,\n const DataTypeSlice & component_types,\n const QueueDequeueMany::Attrs & attrs\n)\n``` \n\n### operator\\[\\]\n\n```gdscript\n::tensorflow::Output operator[](\n size_t index\n) const \n``` \n\nPublic static functions\n-----------------------\n\n### TimeoutMs\n\n```text\nAttrs TimeoutMs(\n int64 x\n)\n```"]]