We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 913e8be commit ae54d5cCopy full SHA for ae54d5c
1 file changed
dpnp/dpnp_utils/dpnp_algo_utils.pyx
@@ -260,7 +260,7 @@ cdef tuple get_shape_dtype(object input_obj):
260
return_dtype = None
261
262
# TODO replace with checking "shape" and "dtype" attributes
263
- if issubclass(type(input_obj), (numpy.ndarray, dparray)):
+ if hasattr(input_obj, "shape") and hasattr(input_obj, "dtype"):
264
return (input_obj.shape, input_obj.dtype)
265
266
cdef shape_type_c elem_shape
0 commit comments