()
| 142 | |
| 143 | |
| 144 | def test_tril(): |
| 145 | @R.function |
| 146 | def foo(x: R.Tensor((2, 3, 4), "float32")) -> R.Tensor((2, 3, 4), "float32"): |
| 147 | gv: R.Tensor((2, 3, 4), "float32") = R.tril(x, k=2) |
| 148 | return gv |
| 149 | |
| 150 | x = relax.Var("x", R.Tensor((2, 3, 4), "float32")) |
| 151 | bb = relax.BlockBuilder() |
| 152 | with bb.function("foo", [x]): |
| 153 | gv = bb.emit(relax.op.tril(x, k=2)) |
| 154 | bb.emit_func_output(gv) |
| 155 | |
| 156 | _check(foo, bb.get()["foo"]) |
| 157 | |
| 158 | |
| 159 | def test_triu(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…