(dtype: str)
| 2148 | |
| 2149 | @R.macro(hygienic=True) |
| 2150 | def alloc_and_shape(dtype: str): |
| 2151 | alloc = R.builtin.alloc_tensor(R.shape([4, 4]), runtime_device_index=x, dtype=dtype) |
| 2152 | shape = R.shape_of(alloc) |
| 2153 | return shape |
| 2154 | |
| 2155 | x = R.prim_value(1) |
| 2156 |