MCPcopy Index your code
hub / github.com/apache/tvm / _copyto

Method _copyto

python/tvm/runtime/_tensor.py:247–250  ·  view source on GitHub ↗

Internal function that implements copy to target ndarray.

(self, target_nd)

Source from the content-addressed store, hash-verified

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.

Callers 1

copytoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected