Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 committed Dec 12, 2023
1 parent 0760ab0 commit c796f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/contrib/cutlass/weight_preprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace runtime {
TVM_REGISTER_GLOBAL("cutlass.ft_preprocess_weight")
.set_body_typed([](NDArray packed_weight, int sm, bool is_int4) {
bool is_2d = packed_weight->ndim == 2;
int num_experts = 1;
int num_experts = is_2d ? 1 : packed_weight->shape[0];
int rows = packed_weight->shape[is_2d ? 0 : 1];
int cols = packed_weight->shape[is_2d ? 1 : 2];

Expand Down

0 comments on commit c796f47

Please sign in to comment.