Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWilkinson committed Aug 14, 2024
1 parent fd2b3d2 commit 7af2fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kernels/test_machete_gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_machete_all_schedules(shape, atype: torch.dtype,
)

# Relax atol as our reduction dim becomes larger (more rounding error)
# Relax atol when we have zeropoints since the way machete applies
# Relax atol when we have zeropoints since the way machete applies
# zeropoints (after scales) causes noise around 0
atol = 1 if zero_points else min(5e-2 * math.sqrt(size_k), 1)
torch.testing.assert_close(output, output_ref, rtol=1e-1, atol=atol),\
Expand Down Expand Up @@ -162,7 +162,7 @@ def test_machete_heuristic(shape, atype: torch.dtype,
)

# Relax atol as our reduction dim becomes larger (more rounding error)
# Relax atol when we have zeropoints since the way machete applies
# Relax atol when we have zeropoints since the way machete applies
# zeropoints (after scales) causes noise around 0
atol = 1 if zero_points else min(5e-2 * math.sqrt(size_k), 1)
torch.testing.assert_close(output, output_ref, rtol=1e-1, atol=atol)

0 comments on commit 7af2fd8

Please sign in to comment.