mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-02 04:31:25 +00:00
[CK_TILE] Top-K with Sigmoid kernel (#3062)
* Add sigmoid option to topk_softmax * fix formatting * add to changelog * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Use else if Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Adam Osewski <19374865+aosewski@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,7 @@ struct TopkSoftmaxHostArgs
|
||||
index_t num_experts;
|
||||
index_t topk;
|
||||
index_t stride_input; // row stride for input, at least experts
|
||||
index_t stride_output; // row stride for output/indices, at least tpok
|
||||
index_t stride_output; // row stride for output/indices, at least topk
|
||||
};
|
||||
|
||||
template <typename Pipeline_>
|
||||
@@ -45,7 +45,7 @@ struct TopkSoftmaxKernel
|
||||
index_t num_experts;
|
||||
index_t topk;
|
||||
index_t stride_input; // row stride for input, at least experts
|
||||
index_t stride_output; // row stride for output/indices, at least tpok
|
||||
index_t stride_output; // row stride for output/indices, at least topk
|
||||
};
|
||||
|
||||
using Kargs = TopkSoftmaxKargs;
|
||||
|
||||
Reference in New Issue
Block a user