Open ndgrigorian opened 1 year ago
We could perhaps write our own formatting function for arrays of large dimensions (simple and limiting solution would be to output values of flattened array as well as the shape), but we must raise a meaningful exception in asnumpy
as well as in from_dlpack
where device
"kDLCPU" was requested.
When printing an array
x
withx.ndim > 32
the following exception is raised:Unlike Numpy, dpctl permits arrays with dimensions greater than 33. Therefore, this array is still usable, printing simply fails due to reliance on Numpy.