spdl.io.to_numba¶
- to_numba(buffer: ArrayInterface | CUDAArrayInterface)[source]¶
Convert to Numba DeviceNDArray or NumPy NDArray.
- Parameters:
buffer – Object that implements the array interface protocol
or ((has __array_interface__))
protocol (CUDA array interface)
- Returns:
A Numba DeviceNDArray or NumPy NDArray.
- Return type:
(DeviceNDArray or NDArray)