oversized expand for HLOP convs

This commit is contained in:
George Hotz
2023-02-24 21:48:47 -08:00
parent 2edfe64512
commit f8f026e8bb
3 changed files with 10 additions and 2 deletions

View File

@@ -91,6 +91,7 @@ class TestOps(unittest.TestCase):
helper_test_op([(45,65)], lambda x: x.sigmoid(), Tensor.sigmoid)
def test_softplus(self):
helper_test_op([(45,65)], lambda x: torch.nn.functional.softplus(x), Tensor.softplus, atol=1e-6, grad_atol=1e-6)
@unittest.skip("not supported in older pytorch")
def test_gelu(self):
helper_test_op([(45,65)], lambda x: torch.nn.functional.gelu(x, approximate="tanh"), Tensor.gelu)
def test_quick_gelu(self):