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

Function test_bind

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

Source from the content-addressed store, hash-verified

268
269
270def test_bind():
271 with IRBuilder() as ib:
272 with T.prim_func(s_tir=True):
273 v = T.bind(T.float32(10))
274 ib.name("v", v)
275 T.evaluate(1)
276 obj = ib.get()
277 _assert_print(
278 obj,
279 """
280# from tvm.script import tirx as T
281# from tvm.tirx.layout import Axis
282
283@T.prim_func(private=True, s_tir=True)
284def main():
285 v: T.let[T.float32] = T.float32(10.0)
286 T.evaluate(1)
287""",
288 )
289
290
291def test_attr_stmt():

Callers

nothing calls this directly

Calls 6

IRBuilderClass · 0.90
_assert_printFunction · 0.70
bindMethod · 0.45
nameMethod · 0.45
evaluateMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…