Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access dpctl.tensor.usm_array attributes via dpnp_array #1028

Closed
PokhodenkoSA opened this issue Oct 23, 2021 · 1 comment
Closed

Access dpctl.tensor.usm_array attributes via dpnp_array #1028

PokhodenkoSA opened this issue Oct 23, 2021 · 1 comment

Comments

@PokhodenkoSA
Copy link
Contributor

PokhodenkoSA commented Oct 23, 2021

dpnp_array is a wrapper for dpctl.tensor.usm_array and does not provide access to attributes usm_type and usm_data.
Also _array_obj is not public. I think client code should not access internal attributes.

What is a recommended way to access attributes from usm_array via dpnp_array ?

@PokhodenkoSA
Copy link
Contributor Author

I understand - recommended way is using properties via __sycl_usm_array_interface__.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant