(
x: R.Tensor((3, 3), dtype="float32"),
_io: R.Object,
)
| 33 | def test_relu(): |
| 34 | @R.function |
| 35 | def forward( |
| 36 | x: R.Tensor((3, 3), dtype="float32"), |
| 37 | _io: R.Object, |
| 38 | ) -> R.Tuple(R.Tensor((3, 3), dtype="float32"), R.Tuple(R.Object)): |
| 39 | R.func_attr({"num_input": 2}) |
| 40 | with R.dataflow(): |
| 41 | relu: R.Tensor((3, 3), dtype="float32") = R.nn.relu(x) |
| 42 | gv1: R.Tuple(R.Tensor((3, 3), dtype="float32"), R.Tuple(R.Object)) = relu, (_io,) |
| 43 | R.output(gv1) |
| 44 | return gv1 |
| 45 | |
| 46 | mod = modules.ReLU() |
| 47 | tvm_mod, _ = mod.export_tvm(spec={"forward": {"x": spec.Tensor((3, 3), "float32")}}, debug=True) |
nothing calls this directly
no test coverage detected
searching dependent graphs…