จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: ท็อปเค:: คุณสมบัติ
#include <nn_ops.h>
ตัวตั้งค่าคุณลักษณะเพิ่มเติมสำหรับ TopK
สรุป
คุณลักษณะสาธารณะ |
---|
sorted_ = true | bool |
งานสาธารณะ |
---|
Sorted (bool x) | หากเป็นจริง ผลลัพธ์ k องค์ประกอบจะถูกจัดเรียงตามค่าจากมากไปน้อย |
คุณลักษณะสาธารณะ
เรียงลำดับ_
bool tensorflow::ops::TopK::Attrs::sorted_ = true
งานสาธารณะ
จัดเรียง
TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(
bool x
)
หากเป็นจริง ผลลัพธ์ k
องค์ประกอบจะถูกจัดเรียงตามค่าจากมากไปน้อย
ค่าเริ่มต้นเป็นจริง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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"]]