mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
Tensor UOps can become a buffer or const after scheduling (#8698)
* spec * work * update test_viewed_consts_do_not_realize * remove
This commit is contained in:
@@ -71,9 +71,9 @@ class TestTensorUopRepresentation(unittest.TestCase):
|
||||
def test_viewed_consts_do_not_realize(self):
|
||||
a = Tensor.ones(10, 10)
|
||||
print(a.lazydata)
|
||||
pre_realize = a.lazydata
|
||||
a.realize()
|
||||
assert a.lazydata is pre_realize
|
||||
is_pattern(a, const_pattern)
|
||||
self.assertEqual(a.lazydata.shape, (10, 10))
|
||||
|
||||
# currently, CONSTs have a "fake" BUFFER. this should be fixed
|
||||
# current:
|
||||
|
||||
Reference in New Issue
Block a user