MCPcopy Index your code
hub / github.com/apache/tvm / test_buffer_store

Function test_buffer_store

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

Source from the content-addressed store, hash-verified

239
240
241def test_buffer_store():
242 a = tirx.decl_buffer((128, 128), "float16", name="A")
243 with IRBuilder() as ib:
244 T.buffer_store(a, a[128, 128] + 1, [128, 128])
245 obj = ib.get()
246 _assert_print(
247 obj,
248 """
249A = T.Buffer((128, 128), "float16")
250A[128, 128] = A[128, 128] + T.float16(1.0)
251""",
252 )
253
254
255def test_for():

Callers

nothing calls this directly

Calls 3

IRBuilderClass · 0.90
_assert_printFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…