MCPcopy Create free account
hub / github.com/apache/tvm / test_match_buffer_region

Function test_match_buffer_region

tests/python/tvmscript/test_tvmscript_printer_tir.py:180–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179
180def test_match_buffer_region():
181 src = tirx.decl_buffer((128, 128), "float32", name="src")
182 tgt = tirx.decl_buffer((64, 64), "float32", name="tgt")
183 obj = tirx.MatchBufferRegion(
184 tgt,
185 tirx.BufferRegion(
186 src,
187 [
188 Range(64, 128),
189 Range(64, 128),
190 ],
191 ),
192 )
193 _assert_print(
194 obj,
195 """
196src = T.Buffer((128, 128))
197tgt = T.match_buffer(src[64:128, 64:128], (64, 64))
198""",
199 )
200
201
202def test_buffer():

Callers

nothing calls this directly

Calls 2

RangeClass · 0.90
_assert_printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…