Skip to content

Follow __sycl_usm_array_interface__ standard in asarray #2554

@icfaust

Description

@icfaust

As of now, arrays which present the __sycl_usm_array_interface__ analogous to the numpy __array__ interface are copied, which is not the case in dpctl. This is problematic for scikit-learn-intelex, and ideally dpnp should out-of-the-box support implementations of this standard. It would be nice if a check was added in asarray to directly convert objects with that interface to dpt tensors for consumption by dpnp.

https://intelpython.github.io/dpctl/latest/api_reference/dpctl/sycl_usm_array_interface.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions