Skip to content

Commit dd525e8

Browse files
authored
fix when tensor include nan (#5724)(#5725)
1 parent 084fd13 commit dd525e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/gpu/examples/moe/test_moe_gemm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,9 @@ def test_moe_gemm(
9595
n_experts,
9696
)
9797
torch.testing.assert_close(
98-
output_fp8.to(float), ref_output.to(float), rtol=1e-2, atol=1e-2
98+
output_fp8.to(float),
99+
ref_output.to(float),
100+
rtol=1e-2,
101+
atol=1e-2,
102+
equal_nan=True,
99103
)

0 commit comments

Comments
 (0)