Skip to content

Commit 8a049cf

Browse files
committed
Fix debug build
Signed-off-by: Luka Govedic <lgovedic@redhat.com>
1 parent 257ab95 commit 8a049cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/moe/topk_softmax_kernels.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void topk_softmax(
530530
stream);
531531
}
532532
else {
533-
assert(topk_indices.scalar_type() == at::ScalarType::Int64);
533+
TORCH_CHECK(topk_indices.scalar_type() == at::ScalarType::Long);
534534
vllm::moe::topkGatingSoftmaxKernelLauncher(
535535
gating_output.data_ptr<float>(),
536536
topk_weights.data_ptr<float>(),

0 commit comments

Comments
 (0)