Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix doc for topk #16571

Merged
merged 1 commit into from
Oct 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/operator/tensor/ordering_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ DMLC_REGISTER_PARAMETER(ArgSortParam);

NNVM_REGISTER_OP(topk)
.add_alias("_npx_topk")
.describe(R"code(Returns the top *k* elements in an input array along the given axis.
.describe(R"code(Returns the indices of the top *k* elements in an input array along the given
axis (by default).
If ret_type is set to 'value' returns the value of top *k* elements (instead of indices).
In case of ret_type = 'both', both value and index would be returned.
The returned elements will be sorted.

Examples::
Expand Down