mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[DOCS] fixed typo triton.testing.allclose -> torch.allclose in MatMul tutorial (#1460)
This commit is contained in:
@@ -293,7 +293,7 @@ triton_output = matmul(a, b, activation=None)
|
||||
torch_output = torch.matmul(a, b)
|
||||
print(f"triton_output={triton_output}")
|
||||
print(f"torch_output={torch_output}")
|
||||
if triton.testing.allclose(triton_output, torch_output):
|
||||
if torch.allclose(triton_output, torch_output, atol=1e-2, rtol=0):
|
||||
print("✅ Triton and Torch match")
|
||||
else:
|
||||
print("❌ Triton and Torch differ")
|
||||
|
||||
Reference in New Issue
Block a user