mirror of https://github.com/commaai/tinygrad.git
div needs help
This commit is contained in:
parent
71aedc2309
commit
339a35b081
|
@ -39,7 +39,7 @@ class TestOps(unittest.TestCase):
|
|||
helper_test_op([(45,65), (45,65)], lambda x,y: x*y, Tensor.mul)
|
||||
def test_div(self):
|
||||
# TODO: why does this need more tolerance?
|
||||
helper_test_op([(45,65), (45,65)], lambda x,y: x/y, Tensor.div, atol=5e-5)
|
||||
helper_test_op([(45,65), (45,65)], lambda x,y: x/y, Tensor.div, atol=5e-5, grad_atol=1e-5)
|
||||
def test_pow(self):
|
||||
helper_test_op([(45,65), (45,65)], lambda x,y: x**y, Tensor.pow)
|
||||
def test_sqrt(self):
|
||||
|
|
Loading…
Reference in New Issue