mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 15:38:29 -05:00
hotfix: add test_simple_conv2d_bias
This commit is contained in:
@@ -1483,6 +1483,11 @@ class TestOps(unittest.TestCase):
|
||||
lambda x,w: torch.nn.functional.conv2d(x,w).relu(),
|
||||
lambda x,w: Tensor.conv2d(x,w).relu(), grad_rtol=1e-5)
|
||||
|
||||
def test_simple_conv2d_bias(self):
|
||||
helper_test_op([(1,4,9,9), (4,4,3,3), (4,)],
|
||||
lambda x,w,b: torch.nn.functional.conv2d(x,w,b).relu(),
|
||||
lambda x,w,b: Tensor.conv2d(x,w,b).relu(), grad_rtol=1e-5)
|
||||
|
||||
@unittest.skipIf(IMAGE>0, "no conv3d on images")
|
||||
def test_simple_conv3d(self):
|
||||
helper_test_op([(1,4,9,9,9), (4,4,3,3,3)],
|
||||
|
||||
Reference in New Issue
Block a user