(
x: R.Tensor((2, 1024, 640), dtype="float32"),
y: R.Tensor((640, 640), dtype="float32"),
y_1: R.Tensor((640, 640), dtype="float32"),
y_2: R.Tensor((640, 640), dtype="float32"),
)
| 106 | |
| 107 | @R.function |
| 108 | def expected2( |
| 109 | x: R.Tensor((2, 1024, 640), dtype="float32"), |
| 110 | y: R.Tensor((640, 640), dtype="float32"), |
| 111 | y_1: R.Tensor((640, 640), dtype="float32"), |
| 112 | y_2: R.Tensor((640, 640), dtype="float32"), |
| 113 | ) -> R.Tensor((2, 3072, 640), dtype="float32"): |
| 114 | with R.dataflow(): |
| 115 | lv = R.concat((y, y_1, y_2), axis=1) |
| 116 | lv1 = R.matmul(x, lv, out_dtype="float32") |
| 117 | lv2 = R.split(lv1, indices_or_sections=[640, 1280], axis=2) |
| 118 | lv_1 = lv2[0] |
| 119 | lv1_1 = lv2[1] |
| 120 | lv2_1 = lv2[2] |
| 121 | lv3 = R.concat((lv_1, lv1_1, lv2_1), axis=1) |
| 122 | R.output(lv3) |
| 123 | return lv3 |
| 124 | |
| 125 | tvm.ir.assert_structural_equal(mod["main"], expected2.with_attr("global_symbol", "main")) |
| 126 |
nothing calls this directly
no test coverage detected
searching dependent graphs…