mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-07 03:00:26 -04:00
realized base tensors become RESHAPE(BUFFER) [pr] (#8994)
This commit is contained in:
@@ -2496,7 +2496,7 @@ class TestUOpBecome(unittest.TestCase):
|
||||
# NOTE: realized base is always a flat buffer
|
||||
assert UPat(Ops.BUFFER).match(add.lazydata.base, {})
|
||||
# the Tensor UOp can optionally stack a VIEW on top of BUFFER
|
||||
assert UPat(Ops.VIEW, src=(UPat(Ops.BUFFER),)).match(add.lazydata, {})
|
||||
assert UPat(Ops.RESHAPE, src=(UPat(Ops.BUFFER),)).match(add.lazydata, {})
|
||||
|
||||
def test_new_buffer_view(self):
|
||||
a = Tensor.empty(4, 4)
|
||||
|
||||
Reference in New Issue
Block a user