()
| 35 | |
| 36 | |
| 37 | def test_full(): |
| 38 | @R.function |
| 39 | def foo(v: R.Tensor((), "int32")) -> R.Tensor((2, 3), "float32"): |
| 40 | gv: R.Tensor((2, 3), "float32") = R.full((2, 3), v, dtype="float32") |
| 41 | return gv |
| 42 | |
| 43 | bb = relax.BlockBuilder() |
| 44 | v = relax.Var("v", R.Tensor((), "int32")) |
| 45 | with bb.function("foo", [v]): |
| 46 | gv = bb.emit(relax.op.full((2, 3), v, "float32")) |
| 47 | bb.emit_func_output(gv) |
| 48 | |
| 49 | _check(foo, bb.get()["foo"]) |
| 50 | |
| 51 | |
| 52 | def test_full_like(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…