()
| 213 | |
| 214 | |
| 215 | def test_tensorrt_tanh(): |
| 216 | @tvm.script.ir_module |
| 217 | class Tanh: |
| 218 | @R.function |
| 219 | def main(data: R.Tensor((2, 8, 16, 16), "float32")): |
| 220 | with R.dataflow(): |
| 221 | out = relax.op.tanh(data) |
| 222 | R.output(out) |
| 223 | return out |
| 224 | |
| 225 | data = np.random.randn(2, 8, 16, 16).astype("float32") |
| 226 | patterns = [("tensorrt.tanh", is_op("relax.tanh")(wildcard()))] |
| 227 | _offload_and_compare(Tanh, {}, patterns, data) |
| 228 | |
| 229 | |
| 230 | def test_tensorrt_conv2d_transpose(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…