컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 탑케이:: 속성
#include <nn_ops.h>
TopK 에 대한 선택적 속성 설정자입니다.
요약
공공 기능 |
---|
Sorted (bool x) | true인 경우 결과 k 개 요소는 값을 기준으로 내림차순으로 정렬됩니다. |
공개 속성
정렬_
bool tensorflow::ops::TopK::Attrs::sorted_ = true
공공 기능
정렬됨
TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(
bool x
)
true인 경우 결과 k
개 요소는 값을 기준으로 내림차순으로 정렬됩니다.
기본값은 true입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]