Internal function that implements copy to target ndarray.
(self, target_nd)
| 245 | raise ValueError(f"Unsupported target type {type(target)}") |
| 246 | |
| 247 | def _copyto(self, target_nd): |
| 248 | """Internal function that implements copy to target ndarray.""" |
| 249 | _ffi_api.TVMTensorCopyFromTo(self, target_nd) |
| 250 | return target_nd |
| 251 | |
| 252 | def _create_view(self, shape, dtype: str | None = None, relative_byte_offset: int = 0): |
| 253 | """Create a view into an existing array. |