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

Method test_buffer_offset

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

Source from the content-addressed store, hash-verified

105 check_assign(bs)
106
107 def test_buffer_offset(self):
108 bs = [
109 [b(0, pin=True), b(1, base=0, offset=1, size=8), b(2)],
110 [b(1), b(2), b(3, base=0, offset=1, size=8)],
111 [b(4), b(3)],
112 [b(5, base=2, offset=2, size=8), b(3)],
113 [b(6), b(5), b(0)],
114 [b(7), b(8, pin=True)],
115 [b(8), b(9, base=2, offset=2, size=8)],
116 [b(9), b(3), b(5)],
117 ]
118 check_assign(bs)
119
120 def test_buffer_offset2(self):
121 bs = [

Callers

nothing calls this directly

Calls 2

check_assignFunction · 0.85
bFunction · 0.70

Tested by

no test coverage detected