Method
main
(A: T.Buffer((2,), "float32"), B: T.Buffer((2,), "float32"))
Source from the content-addressed store, hash-verified
| 51 | class Expected: |
| 52 | @T.prim_func(s_tir=True) |
| 53 | def main(A: T.Buffer((2,), "float32"), B: T.Buffer((2,), "float32")): |
| 54 | T.func_attr( |
| 55 | { |
| 56 | "tirx.is_scheduled": True, |
| 57 | "global_symbol": "main", |
| 58 | "tirx.noalias": True, |
| 59 | } |
| 60 | ) |
| 61 | for i in T.serial(2): |
| 62 | with T.sblock("renamed_block"): |
| 63 | vi = T.axis.spatial(2, i) |
| 64 | B[vi] = A[vi] |
| 65 | |
| 66 | def create_trace(mod: tvm.IRModule): |
| 67 | sch = tvm.s_tir.Schedule(mod) |
Tested by
no test coverage detected