mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
fix Tensor.pow folding for exponent 0 and 1 (#4025)
This commit is contained in:
@@ -363,7 +363,7 @@ class TestSchedule(unittest.TestCase):
|
||||
x = Tensor([1,2,3,4])
|
||||
out = x ** Tensor(0)
|
||||
# NOTE: this is ConstBuffer 0 + ConstBuffer 1
|
||||
check_schedule(out, 1)
|
||||
check_schedule(out, 0)
|
||||
|
||||
def test_zero_size(self):
|
||||
x = Tensor.empty(2, 3, 0)
|
||||
|
||||
Reference in New Issue
Block a user