rename rawbufs to bufs in ExecItem (#4274)

This commit is contained in:
George Hotz
2024-04-24 07:27:27 +04:00
committed by GitHub
parent 60e3aa5cb1
commit 38f97aa0fe
7 changed files with 26 additions and 26 deletions

View File

@@ -58,7 +58,7 @@ class TestLinearizer(unittest.TestCase):
c = ((a.shrink(((0, 2),)) - a.shrink(((2, 4),))) - (b.shrink(((0, 2),)) - b.shrink(((2, 4),))))
lowered = list(lower_schedule(create_schedule([c.lazydata])))
for ei in lowered: ei.run()
rawbufs = lowered[-1].rawbufs
rawbufs = lowered[-1].bufs
assert len(rawbufs) == 3 and set(rawbufs[1:]) == {a.lazydata.base.realized, b.lazydata.base.realized}
np_c = (np_a[:2] - np_a[2:]) - (np_b[:2] - np_b[2:])
np.testing.assert_allclose(np_c, c.numpy(), atol=1e-4, rtol=1e-4)