[DOCS] fixed typo triton.testing.allclose -> torch.allclose in MatMul tutorial (#1460)

This commit is contained in:
Kern Handa
2023-03-31 17:06:46 -07:00
committed by GitHub
parent cc4aa1ebbc
commit 2c0417da96

View File

@@ -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")