Skip to content

Commit 6a060bc

Browse files
committed
Use dpnp.is_supported_array_type()
1 parent 3e92e68 commit 6a060bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpnp/dpnp_utils/dpnp_algo_utils.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ cdef ERROR_PREFIX = "DPNP error:"
7676

7777

7878
def convert_item(item):
79-
if hasattr(item, "__sycl_usm_array_interface__"):
79+
# if hasattr(item, "__sycl_usm_array_interface__"):
80+
if dpnp.is_supported_array_type(item):
8081
item_converted = dpnp.asnumpy(item)
8182
elif hasattr(item, "__array_interface__"): # detect if it is a container (TODO any better way?)
8283
mod_name = getattr(item, "__module__", 'none')

0 commit comments

Comments
 (0)