(
x: R.Tensor((1, 16, 32, 32), "float32"),
)
| 70 | |
| 71 | @R.function |
| 72 | def main( |
| 73 | x: R.Tensor((1, 16, 32, 32), "float32"), |
| 74 | ) -> R.Tensor((1, 16, 16, 16), "float32"): |
| 75 | with R.dataflow(): |
| 76 | # First ReLU |
| 77 | y = relax.op.nn.relu(x) |
| 78 | # Max pooling |
| 79 | z = relax.op.nn.max_pool2d(y, pool_size=(2, 2), strides=(2, 2)) |
| 80 | # Second ReLU |
| 81 | out = relax.op.nn.relu(z) |
| 82 | R.output(out) |
| 83 | return out |
| 84 | |
| 85 | |
| 86 | @tvm.script.ir_module |
nothing calls this directly
no test coverage detected