Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helion/_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ def run_example(
rtol: Relative tolerance for correctness check (default: 1e-2)
atol: Absolute tolerance for correctness check (default: 1e-1)
"""
torch.set_float32_matmul_precision("high")
torch.backends.cuda.matmul.fp32_precision = "tf32"
torch.backends.cudnn.conv.fp32_precision = "tf32" # type: ignore[reportAttributeAccessIssue]

# Normalize to dict format
kernels = kernel_fn if isinstance(kernel_fn, dict) else {kernel_name: kernel_fn}
Expand Down
Loading