(
input_1: R.Tensor((1, 3, 10), dtype="float32"),
w1: R.Tensor((6, 3, 7), dtype="float32"),
w2: R.Tensor((6,), dtype="float32"),
)
| 67 | class expected1: |
| 68 | @R.function |
| 69 | def main( |
| 70 | input_1: R.Tensor((1, 3, 10), dtype="float32"), |
| 71 | w1: R.Tensor((6, 3, 7), dtype="float32"), |
| 72 | w2: R.Tensor((6,), dtype="float32"), |
| 73 | ) -> R.Tensor((1, 6, 4), dtype="float32"): |
| 74 | # block 0 |
| 75 | with R.dataflow(): |
| 76 | lv1: R.Tensor((1, 6, 4), dtype="float32") = R.nn.conv1d( |
| 77 | input_1, |
| 78 | w1, |
| 79 | strides=[1], |
| 80 | padding=[0, 0], |
| 81 | dilation=[1], |
| 82 | data_layout="NCW", |
| 83 | kernel_layout="OIW", |
| 84 | out_layout="NCW", |
| 85 | out_dtype="float32", |
| 86 | ) |
| 87 | lv2: R.Tensor((1, 6, 1), dtype="float32") = R.reshape(w2, [1, 6, 1]) |
| 88 | lv3: R.Tensor((1, 6, 4), dtype="float32") = R.add(lv1, lv2) |
| 89 | gv: R.Tensor((1, 6, 4), dtype="float32") = lv3 |
| 90 | R.output(gv) |
| 91 | return gv |
| 92 | |
| 93 | class Conv1D2(Module): |
| 94 | def __init__(self): |
nothing calls this directly
no test coverage detected