จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เทนเซอร์โฟลว์:: ปฏิบัติการ:: องค์ประกอบที่ N:: คุณสมบัติ
#include <nn_ops.h>
ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ NthElement
สรุป
งานสาธารณะ |
---|
Reverse (bool x) | เมื่อตั้งค่าเป็น True ให้ค้นหาค่าที่มากที่สุดอันดับที่ n ในเวกเตอร์และในทางกลับกัน |
คุณลักษณะสาธารณะ
ย้อนกลับ_
bool tensorflow::ops::NthElement::Attrs::reverse_ = false
งานสาธารณะ
ย้อนกลับ
TF_MUST_USE_RESULT Attrs tensorflow::ops::NthElement::Attrs::Reverse(
bool x
)
เมื่อตั้งค่าเป็น True ให้ค้นหาค่าที่มากที่สุดอันดับที่ n ในเวกเตอร์และในทางกลับกัน
ค่าเริ่มต้นเป็นเท็จ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# tensorflow::ops::NthElement::Attrs Struct Reference\n\ntensorflow::ops::NthElement::Attrs\n==================================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [NthElement](/versions/r2.1/api_docs/cc/class/tensorflow/ops/nth-element#classtensorflow_1_1ops_1_1_nth_element).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|--------|\n| [reverse_](#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs_1a52c83bb2ea2b8689dc3c0107711c9c9c)` = false` | `bool` |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Reverse](#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs_1a6fa7514afbcda87cda9c6a9b611c788e)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/nth-element/attrs#structtensorflow_1_1ops_1_1_nth_element_1_1_attrs) When set to True, find the nth-largest value in the vector and vice versa. |\n\nPublic attributes\n-----------------\n\n### reverse_\n\n```scdoc\nbool tensorflow::ops::NthElement::Attrs::reverse_ = false\n``` \n\nPublic functions\n----------------\n\n### Reverse\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::NthElement::Attrs::Reverse(\n bool x\n)\n``` \nWhen set to True, find the nth-largest value in the vector and vice versa.\n\nDefaults to false"]]