This commit is contained in:
George Hotz
2020-11-01 07:51:35 -08:00
parent 1f544d6ece
commit 41e7d59aed
3 changed files with 6 additions and 2 deletions

View File

@@ -56,6 +56,8 @@ class TestOps(unittest.TestCase):
helper_test_op([(45,65), (45,65)], lambda x,y: x**y, Tensor.pow)
def test_sqrt(self):
helper_test_op([(45,65)], lambda x: x.sqrt(), Tensor.sqrt)
def test_dot(self):
helper_test_op([(45,65), (65,100)], lambda x,y: x.matmul(y), Tensor.dot, atol=1e-5)
def test_conv2d(self):
for bs in [1,8]: