mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
always keep batch size out front
This commit is contained in:
@@ -78,8 +78,8 @@ class TestOps(unittest.TestCase):
|
||||
out.mean().backward()
|
||||
ret.mean().backward()
|
||||
|
||||
np.testing.assert_allclose(w.grad, wt.grad, atol=1e-5)
|
||||
np.testing.assert_allclose(x.grad, xt.grad, atol=1e-5)
|
||||
np.testing.assert_allclose(w.grad, wt.grad, atol=1e-7)
|
||||
np.testing.assert_allclose(x.grad, xt.grad, atol=1e-7)
|
||||
|
||||
def test_maxpool2x2(self):
|
||||
x = torch.randn((5,2,10,8), requires_grad=True)
|
||||
|
||||
Reference in New Issue
Block a user