(x: R.Tensor, y: R.Tensor)
| 84 | class Expected: |
| 85 | @R.function |
| 86 | def main(x: R.Tensor, y: R.Tensor) -> R.Tensor: |
| 87 | with R.dataflow(): |
| 88 | z = R.add(x, y) |
| 89 | w = R.multiply(z, y) |
| 90 | v = R.add(w, x) |
| 91 | R.output(v) |
| 92 | return v |
| 93 | |
| 94 | After = relax.transform.ConvertToDataflow()(Before) |
| 95 | tvm.ir.assert_structural_equal(After, Expected) |