mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
@@ -181,7 +181,7 @@ class TestSchedule(unittest.TestCase):
|
||||
# run
|
||||
img = Tensor.rand(2,3,64,64)
|
||||
out = c1(img).elu()
|
||||
check_schedule(out, 1, [c1.weight, c1.bias, img])
|
||||
check_schedule(out, 1, [c1.weight, c1.bias])
|
||||
|
||||
def test_two_sum(self):
|
||||
img = Tensor.empty(64,64)
|
||||
@@ -336,7 +336,7 @@ class TestSchedule(unittest.TestCase):
|
||||
out = bn1(conv1(x)).relu()
|
||||
out = bn2(conv2(out))
|
||||
out = (out + x).relu()
|
||||
check_schedule(out, 2, [conv1.weight, conv2.weight])
|
||||
check_schedule(out, 4)
|
||||
|
||||
def test_contiguous_while_contiguous(self):
|
||||
x = Tensor.empty(1, 64, 32, 32)
|
||||
|
||||
Reference in New Issue
Block a user