mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 15:08:02 -05:00
toposort is a function [pr] (#10004)
This commit is contained in:
@@ -20,7 +20,7 @@ class TestBlockReorder(unittest.TestCase):
|
||||
random.shuffle(lst)
|
||||
topolst = []
|
||||
for u in lst:
|
||||
for p in u.toposort:
|
||||
for p in u.toposort():
|
||||
if p not in topolst: topolst.append(p)
|
||||
assert is_toposorted(topolst)
|
||||
|
||||
@@ -54,7 +54,7 @@ class TestBlockReorder(unittest.TestCase):
|
||||
sink = c.store(sum(loads)).sink()
|
||||
|
||||
# determine golden order
|
||||
golden = block_reorder(sink.toposort)
|
||||
golden = block_reorder(sink.toposort())
|
||||
|
||||
# render for test
|
||||
print(self._test_render(golden))
|
||||
|
||||
Reference in New Issue
Block a user