tvm_tirx.runtime.tensor#
- tvm_tirx.runtime.tensor(arr, device=None, mem_scope=None)#
Create an tensor from source arr.
- Parameters:
arr (numpy.ndarray) – The array to be copied from
device (Device, optional) – The device to create the array
mem_scope (Optional[str or tvm_tirx.runtime.MemoryScope]) – The memory scope of the array
- Returns:
ret (Tensor) – The created array