Skip to content

Commit db4570a

Browse files
committed
ggml : add comments
1 parent c63ecde commit db4570a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/include/ggml.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2259,13 +2259,14 @@ extern "C" {
22592259
struct ggml_tensor * a,
22602260
enum ggml_sort_order order);
22612261

2262-
// same as ggml_top_k but implemented as `argsort` + `view`
2262+
// similar to ggml_top_k but implemented as `argsort` + `view`
22632263
GGML_API struct ggml_tensor * ggml_argsort_top_k(
22642264
struct ggml_context * ctx,
22652265
struct ggml_tensor * a,
22662266
int k);
22672267

22682268
// top k elements per row
2269+
// note: the resulting top k indices are in no particular order
22692270
GGML_API struct ggml_tensor * ggml_top_k(
22702271
struct ggml_context * ctx,
22712272
struct ggml_tensor * a,

0 commit comments

Comments
 (0)