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