संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: रैंडमशफ़लक्यू:: Attrs
#include <data_flow_ops.h>
RandomShumbleQueue के लिए वैकल्पिक विशेषता सेटर।
सारांश
सार्वजनिक समारोह |
---|
Capacity (int64 x) | इस कतार में तत्वों की संख्या पर ऊपरी सीमा। |
Container (StringPiece x) | यदि खाली नहीं है, तो यह कतार दिए गए कंटेनर में रखी गई है। |
MinAfterDequeue (int64 x) | जब तक डेक्यू या कतार बंद होने के बाद इतने सारे तत्व नहीं होंगे तब तक डेक्यू ब्लॉक हो जाएगा। |
Seed (int64 x) | यदि बीज या बीज 2 को गैर-शून्य पर सेट किया गया है, तो यादृच्छिक संख्या जनरेटर को दिए गए बीज द्वारा बीजित किया जाता है। |
Seed2 (int64 x) | बीज टकराव से बचने के लिए दूसरा बीज। |
Shapes (const gtl::ArraySlice< PartialTensorShape > & x) | एक मान में प्रत्येक घटक का आकार. |
SharedName (StringPiece x) | यदि खाली नहीं है, तो यह कतार दिए गए नाम के तहत कई सत्रों में साझा की जाएगी। |
सार्वजनिक गुण
क्षमता_
int64 tensorflow::ops::RandomShuffleQueue::Attrs::capacity_ = -1
कंटेनर_
StringPiece tensorflow::ops::RandomShuffleQueue::Attrs::container_ = ""
min_after_dequeue_
int64 tensorflow::ops::RandomShuffleQueue::Attrs::min_after_dequeue_ = 0
बीज2_
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed2_ = 0
बीज_
int64 tensorflow::ops::RandomShuffleQueue::Attrs::seed_ = 0
आकार_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::RandomShuffleQueue::Attrs::shapes_ = {}
साझा_नाम_
StringPiece tensorflow::ops::RandomShuffleQueue::Attrs::shared_name_ = ""
सार्वजनिक समारोह
क्षमता
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Capacity(
int64 x
)
इस कतार में तत्वों की संख्या पर ऊपरी सीमा।
नकारात्मक संख्याओं का मतलब कोई सीमा नहीं है।
-1 पर डिफ़ॉल्ट
पात्र
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Container(
StringPiece x
)
यदि खाली नहीं है, तो यह कतार दिए गए कंटेनर में रखी गई है।
अन्यथा, एक डिफ़ॉल्ट कंटेनर का उपयोग किया जाता है।
डिफ़ॉल्ट रूप से ""
मिनआफ्टरडेक्यू
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::MinAfterDequeue(
int64 x
)
जब तक डेक्यू या कतार बंद होने के बाद इतने सारे तत्व नहीं होंगे तब तक डेक्यू ब्लॉक हो जाएगा।
यह तत्वों के मिश्रण का न्यूनतम स्तर सुनिश्चित करता है।
डिफ़ॉल्ट 0 है
बीज
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed(
int64 x
)
यदि बीज या बीज 2 को गैर-शून्य पर सेट किया गया है, तो यादृच्छिक संख्या जनरेटर को दिए गए बीज द्वारा बीजित किया जाता है।
अन्यथा, यादृच्छिक बीज का उपयोग किया जाता है।
डिफ़ॉल्ट 0 है
बीज2
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed2(
int64 x
)
बीज टकराव से बचने के लिए दूसरा बीज।
डिफ़ॉल्ट 0 है
आकार
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Shapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
एक मान में प्रत्येक घटक का आकार.
इस एटीआर की लंबाई या तो 0 होनी चाहिए या कंपोनेंट_टाइप्स की लंबाई के समान होनी चाहिए। यदि इस attr की लंबाई 0 है, तो कतार तत्वों के आकार बाधित नहीं होते हैं, और एक समय में केवल एक तत्व को हटाया जा सकता है।
डिफ़ॉल्ट रूप से []
साझानाम
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::SharedName(
StringPiece x
)
यदि खाली नहीं है, तो यह कतार दिए गए नाम के तहत कई सत्रों में साझा की जाएगी।
डिफ़ॉल्ट रूप से ""
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::RandomShuffleQueue::Attrs Struct Reference\n\ntensorflow::ops::RandomShuffleQueue::Attrs\n==========================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [RandomShuffleQueue](/versions/r2.2/api_docs/cc/class/tensorflow/ops/random-shuffle-queue#classtensorflow_1_1ops_1_1_random_shuffle_queue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1afb83eefeee0f76422950f84b2f3fce2a)` = -1` | `int64` |\n| [container_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a39b2ecd316bb0a80de0bcd7d1b979afc)` = \"\"` | `StringPiece` |\n| [min_after_dequeue_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a0a23832b159b21ef89a692feb7b53129)` = 0` | `int64` |\n| [seed2_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a1dc3db9c6e75d898bc6783d451815636)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a037b739063be2c8e48a6ec3286476628)` = 0` | `int64` |\n| [shapes_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ab9ff55cf53eab01c47c6f16f65e489af)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a0a6b829ef3cd365ff950779845813201)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a371ea09e4f32789435cf0e4a540f4b49)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) The upper bound on the number of elements in this queue. |\n| [Container](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a1c87319288cf7fa7454cc31538e352f4)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) If non-empty, this queue is placed in the given container. |\n| [MinAfterDequeue](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a541d34de9c459848ba76c56ab1ab6906)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) Dequeue will block unless there would be this many elements after the dequeue or the queue is closed. |\n| [Seed](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ac74e47deedec2bea93ff284e5665c1c2)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. |\n| [Seed2](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ad7f04429306636bee9ab53dcf93c790f)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) A second seed to avoid seed collision. |\n| [Shapes](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1ad059f023ca75b51a287e3c3213b0fff3)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) The shape of each component in a value. |\n| [SharedName](#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs_1a09a84a8491819f32042af4814345c095)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/random-shuffle-queue/attrs#structtensorflow_1_1ops_1_1_random_shuffle_queue_1_1_attrs) If non-empty, this queue will be shared under the given name across multiple sessions. |\n\nPublic attributes\n-----------------\n\n### capacity_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffleQueue::Attrs::capacity_ = -1\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::RandomShuffleQueue::Attrs::container_ = \"\"\n``` \n\n### min_after_dequeue_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffleQueue::Attrs::min_after_dequeue_ = 0\n``` \n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffleQueue::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffleQueue::Attrs::seed_ = 0\n``` \n\n### shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::RandomShuffleQueue::Attrs::shapes_ = {}\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::RandomShuffleQueue::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Capacity(\n int64 x\n)\n``` \nThe upper bound on the number of elements in this queue.\n\nNegative numbers mean no limit.\n\nDefaults to -1 \n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this queue is placed in the given container.\n\nOtherwise, a default container is used.\n\nDefaults to \"\" \n\n### MinAfterDequeue\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::MinAfterDequeue(\n int64 x\n)\n``` \nDequeue will block unless there would be this many elements after the dequeue or the queue is closed.\n\nThis ensures a minimum level of mixing of elements.\n\nDefaults to 0 \n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed(\n int64 x\n)\n``` \nIf either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed.\n\nOtherwise, a random seed is used.\n\nDefaults to 0 \n\n### Seed2\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Seed2(\n int64 x\n)\n``` \nA second seed to avoid seed collision.\n\nDefaults to 0 \n\n### Shapes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::Shapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nThe shape of each component in a value.\n\nThe length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.\n\nDefaults to \\[\\] \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffleQueue::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this queue will be shared under the given name across multiple sessions.\n\nDefaults to \"\""]]