Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dpnp/dpnp_utils/dpnp_algo_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ cdef ERROR_PREFIX = "DPNP error:"


def convert_item(item):
if getattr(item, "__sycl_usm_array_interface__", False):
if hasattr(item, "__sycl_usm_array_interface__"):
item_converted = dpnp.asnumpy(item)
elif getattr(item, "__array_interface__", False): # detect if it is a container (TODO any better way?)
elif hasattr(item, "__array_interface__"): # detect if it is a container (TODO any better way?)
mod_name = getattr(item, "__module__", 'none')
if (mod_name != 'numpy'):
item_converted = dpnp.asnumpy(item)
Expand Down
Loading