mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
remove uop mutability [pr] (#8441)
* remove uop mutability [pr] * test fixups * most tests pass * more tests pass * lil test fixups * them too * fix test * unneeded * err, that * fix test_hcq * fix test failures * fix that test * tensor universe * does this pass test * Revert "does this pass test" This reverts commited516b3169. * Revert "tensor universe" This reverts commitc21301852a. * proper spidering for uops * cleanups * all tensors * all tensors * slow but correct * fast * no WeakSet * faster * no need for list * revert that
This commit is contained in:
@@ -101,6 +101,10 @@ print(sched[-1].ast)
|
||||
# run that schedule
|
||||
run_schedule(sched)
|
||||
|
||||
# NOTE: UOps are no longer mutable, you have to fetch this from the becomes_map
|
||||
from tinygrad.ops import becomes_map
|
||||
out = becomes_map[out]
|
||||
|
||||
# check the data out
|
||||
assert out.realized is not None and out.realized.as_buffer().cast('I')[0] == 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user