MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_buffer_offset2

Method test_buffer_offset2

test/null/test_memory_planner.py:120–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 check_assign(bs)
119
120 def test_buffer_offset2(self):
121 bs = [
122 [b(0, pin=True), b(1), b(2)],
123 [b(1), b(2), b(3)],
124 [b(4), b(3)],
125 [b(5), b(3)],
126 [b(6), b(5), b(0)],
127 [b(7), b(8, pin=True)],
128 [b(8), b(9)],
129 [b(9), b(3), b(5)],
130 [b(11), b(0)],
131 [b(11), b(10), b(5)],
132 [b(12), b(11), b(0)],
133 [b(6), b(12), b(7)],
134 [b(13), b(6), b(11)],
135 ]
136 check_assign(bs)
137
138 def test_all_offsets_of_one(self):
139 bs = [

Callers

nothing calls this directly

Calls 2

check_assignFunction · 0.85
bFunction · 0.70

Tested by

no test coverage detected