Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion TopK.mlu
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ std::vector<torch::Tensor> bang_func(torch::Tensor x, int k, int dim) {
auto indices = torch::empty({batch, k}, x.options().dtype(torch::kInt64));

cnrtQueue_t queue = torch_mlu::getCurMLUStream();
cnrtDim3_t task_dim = {batch, 1, 1};
cnrtDim3_t task_dim = {static_cast<unsigned int>(batch), 1, 1};
cnrtFunctionType_t ktype = cnrtFuncTypeUnion1;

topk_dim1_kernel<<<task_dim, ktype, queue>>>(
Expand Down
3 changes: 0 additions & 3 deletions config
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
070
075
051