Remove wrong dependency between TritonGPU and NVGPU dialect (#2276)

This commit is contained in:
Thomas Raoux
2023-09-11 16:30:13 -07:00
committed by GitHub
parent ec4a968d44
commit a9db6b94b9
7 changed files with 9 additions and 5 deletions

View File

@@ -36,5 +36,7 @@ def test_op(M, N, dtype, mode):
x.grad = None
th_y.backward(dy)
th_dx = x.grad.clone()
torch.testing.assert_close(th_dx, tt_dx)
if dtype == 'float16':
torch.testing.assert_close(th_dx, tt_dx, rtol=0.001, atol=0.001)
else:
torch.testing.assert_close(th_dx, tt_dx)