(
x: R.Tensor((32, "m"), "float32"),
y: R.Tensor(("m",), "float32"),
r: R.Tensor(dtype="int64"),
)
| 350 | # test case from test_parser |
| 351 | @R.function(pure=False) |
| 352 | def f( |
| 353 | x: R.Tensor((32, "m"), "float32"), |
| 354 | y: R.Tensor(("m",), "float32"), |
| 355 | r: R.Tensor(dtype="int64"), |
| 356 | ) -> R.Object: |
| 357 | m = T.int64() |
| 358 | z: R.Tensor((32, m), "float32") = R.multiply(x, y) |
| 359 | w: R.Tensor(ndim=2) = R.multiply(z, z) |
| 360 | q: R.Tensor = R.add(w, w) |
| 361 | t = R.add(w, z) |
| 362 | sh: R.Shape = R.shape_of(t) |
| 363 | o: R.Object = R.call_packed( |
| 364 | "contrib.tensor_array_stack", x, y, sinfo_args=R.Object(), test_attr=True |
| 365 | ) |
| 366 | return o |
| 367 | |
| 368 | # checking that the call_packed call is turned into a call to an extern func |
| 369 | f_str = strip_whitespace( |
no test coverage detected