Method
main
(data: R.Tensor((2, 8, 16), "float32"), weight: R.Tensor((4, 8, 3), "float32"))
Source from the content-addressed store, hash-verified
| 141 | class Conv1d: |
| 142 | @R.function |
| 143 | def main(data: R.Tensor((2, 8, 16), "float32"), weight: R.Tensor((4, 8, 3), "float32")): |
| 144 | with R.dataflow(): |
| 145 | out = relax.op.nn.conv1d(data, weight, padding=1) |
| 146 | R.output(out) |
| 147 | return out |
| 148 | |
| 149 | data = np.random.randn(2, 8, 16).astype("float32") |
| 150 | weight = np.random.randn(4, 8, 3).astype("float32") |
Callers
nothing calls this directly
Tested by
no test coverage detected