()
| 268 | |
| 269 | |
| 270 | def 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) |
| 284 | def main(): |
| 285 | v: T.let[T.float32] = T.float32(10.0) |
| 286 | T.evaluate(1) |
| 287 | """, |
| 288 | ) |
| 289 | |
| 290 | |
| 291 | def test_attr_stmt(): |