Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: TopK:: Atrybuty
#include <nn_ops.h>
Opcjonalne ustawiacze atrybutów dla TopK .
Streszczenie
Atrybuty publiczne |
---|
sorted_ = true | bool |
Funkcje publiczne |
---|
Sorted (bool x) | Jeśli ma wartość true, wynikowe k elementów zostanie posortowanych malejąco według wartości. |
Atrybuty publiczne
posortowane_
bool tensorflow::ops::TopK::Attrs::sorted_ = true
Funkcje publiczne
Posortowane
TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(
bool x
)
Jeśli ma wartość true, wynikowe k
elementów zostanie posortowanych malejąco według wartości.
Domyślnie jest to prawda
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-28 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]