Skip to content

Commit 37316e9

Browse files
committed
minor
1 parent e805e6f commit 37316e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flashinfer/fused_moe/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,9 +1121,9 @@ def forward(
11211121
assert hidden_states.shape[0] == num_tokens, (
11221122
"hidden_states's first dimension must be batch size."
11231123
)
1124-
assert (
1125-
hidden_states_scale is None
1126-
or hidden_states_scale.shape[0] == num_tokens
1124+
assert hidden_states_scale is None or (
1125+
hidden_states_scale.dim() == 2
1126+
and hidden_states_scale.shape[0] == num_tokens
11271127
), "hidden_states_scale's first dimension must be batch size"
11281128

11291129
# TODO(siyuan): support fp8

0 commit comments

Comments
 (0)