We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aadb6b4 commit da59476Copy full SHA for da59476
dpctl/tensor/_usmarray.pyx
@@ -191,10 +191,11 @@ cdef class usm_ndarray:
191
try:
192
<Py_ssize_t> shape
193
shape = [shape, ]
194
- except Exception:
+ except Exception as e:
195
raise TypeError(
196
- "Argument shape must be a list or a tuple."
197
- )
+ "Argument shape must a non-negative integer, "
+ "or a list/tuple of such integers."
198
+ ) from e
199
nd = len(shape)
200
if dtype is None:
201
if isinstance(buffer, (dpmem._memory._Memory, usm_ndarray)):
0 commit comments