संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
टेंसरफ़्लो:: ऑप्स:: टॉपके:: Attrs
#include <nn_ops.h>
TopK के लिए वैकल्पिक विशेषता सेटर्स।
सारांश
सार्वजनिक समारोह |
---|
Sorted (bool x) | यदि सत्य है तो परिणामी k तत्वों को मानों के अनुसार अवरोही क्रम में क्रमबद्ध किया जाएगा। |
सार्वजनिक गुण
क्रमबद्ध_
bool tensorflow::ops::TopK::Attrs::sorted_ = true
सार्वजनिक समारोह
क्रमबद्ध
TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(
bool x
)
यदि सत्य है तो परिणामी k
तत्वों को मानों के अनुसार अवरोही क्रम में क्रमबद्ध किया जाएगा।
डिफ़ॉल्ट सत्य पर
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-28 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-28 (UTC) को अपडेट किया गया."],[],[],null,["# tensorflow::ops::TopK::Attrs Struct Reference\n\ntensorflow::ops::TopK::Attrs\n============================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [TopK](/versions/r1.15/api_docs/cc/class/tensorflow/ops/top-k#classtensorflow_1_1ops_1_1_top_k).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------|--------|\n| [sorted_](#structtensorflow_1_1ops_1_1_top_k_1_1_attrs_1abbbe7daa73e35807a6e801d71818d7d6)` = true` | `bool` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Sorted](#structtensorflow_1_1ops_1_1_top_k_1_1_attrs_1ae56fc99e004be4f8fc11ecaefb1bedc4)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/top-k/attrs#structtensorflow_1_1ops_1_1_top_k_1_1_attrs) If true the resulting `k` elements will be sorted by the values in descending order. |\n\nPublic attributes\n-----------------\n\n### sorted_\n\n```scdoc\nbool tensorflow::ops::TopK::Attrs::sorted_ = true\n``` \n\nPublic functions\n----------------\n\n### Sorted\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(\n bool x\n)\n``` \nIf true the resulting `k` elements will be sorted by the values in descending order.\n\nDefaults to true"]]