Skip to content

Commit

Permalink
revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
scxiao committed Feb 28, 2025
1 parent c404850 commit e58b073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/test/unit/language/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,8 @@ def kernel(in_ptr, idx_ptr, out_ptr, shape0, shape1, mask_step, XBLOCK: tl.const
idx = torch.randint(0, shape1, size=(shape0, shape1), device=device)

val = torch.randn((shape0, shape1), dtype=getattr(torch, dtype_x_str), device=device)
dst = torch.zeros((shape0, shape1), dtype=getattr(torch, dtype_x_str), device=device)
dst = torch.randn((shape0, shape1), dtype=getattr(torch, dtype_x_str), device=device)

dst_ref = dst.clone()

cnt = 0
Expand All @@ -1725,7 +1726,6 @@ def kernel(in_ptr, idx_ptr, out_ptr, shape0, shape1, mask_step, XBLOCK: tl.const
cnt += 1

kernel[(1, )](val, idx, dst, shape0, shape1, mask_step, 64, num_ctas=num_ctas)

np.testing.assert_allclose(to_numpy(dst_ref), to_numpy(dst), atol=1e-2)


Expand Down

0 comments on commit e58b073

Please sign in to comment.