Skip to content

Commit a4db963

Browse files
committed
remove unused var
Signed-off-by: CaranLic <[email protected]>
1 parent 8e11b17 commit a4db963

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

tests/e2e/singlecard/ops/test_fused_moe.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ def test_token_dispatcher_with_all_gather(
118118
score = torch.softmax(score, dim=-1, dtype=dtype)
119119
topk_weights, topk_ids = torch.topk(score, topk)
120120
topk_ids = topk_ids.to(torch.int32)
121-
row_idx = (torch.arange(
122-
0,
123-
m * topk,
124-
device=device,
125-
dtype=torch.int32,
126-
).view(topk, -1).permute(1, 0).contiguous())
127121

128122
dispatcher_kwargs = {
129123
"num_experts": e,
@@ -200,12 +194,6 @@ def test_token_dispatcher_with_all_gather_quant(
200194
score = torch.softmax(score, dim=-1, dtype=dtype)
201195
topk_weights, topk_ids = torch.topk(score, topk)
202196
topk_ids = topk_ids.to(torch.int32)
203-
row_idx = (torch.arange(
204-
0,
205-
m * topk,
206-
device=device,
207-
dtype=torch.int32,
208-
).view(topk, -1).permute(1, 0).contiguous())
209197

210198
dispatcher_kwargs = {
211199
"num_experts": e,

tests/ut/ops/test_moe_comm_method.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ def test_fused_experts_method(self, mock_unified_apply_mlp,
204204
topk_weights = torch.tensor([[0.5, 0.5], [0.3, 0.7], [0.8, 0.2],
205205
[0.6, 0.4]])
206206
topk_ids = torch.tensor([[0, 1], [1, 2], [2, 0], [1, 1]])
207-
row_idx = torch.arange(4)
208207

209208
# Make sure tensors are contiguous and have correct strides
210209
hidden_states = hidden_states.contiguous()

0 commit comments

Comments
 (0)