mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
hotfix: adjust test_backward_pass_diamond_model thresholds (#5981)
This commit is contained in:
@@ -141,7 +141,7 @@ class TestTinygrad(unittest.TestCase):
|
||||
return out.detach().numpy(), u.grad, v.grad, w.grad
|
||||
|
||||
for x,y in zip(test_tinygrad(), test_pytorch()):
|
||||
np.testing.assert_allclose(x, y, atol=1e-5)
|
||||
np.testing.assert_allclose(x, y, atol=1e-5, rtol=1e-6)
|
||||
|
||||
def test_nograd(self):
|
||||
x = Tensor(x_init, requires_grad=False)
|
||||
|
||||
Reference in New Issue
Block a user