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

Support for __array_interface__ #1071

Merged
merged 8 commits into from Jul 28, 2022
Merged

Conversation

gronerl
Copy link
Collaborator

@gronerl gronerl commented Jul 27, 2022

This PR implements support for objects implementing the __array_interface__ similar to the already supported __cuda_array_interface__

Copy link
Collaborator

@tbennun tbennun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs some changes

dace/data.py Outdated Show resolved Hide resolved
tests/array_interface_test.py Outdated Show resolved Hide resolved
tests/array_interface_test.py Outdated Show resolved Hide resolved
dace/data.py Outdated Show resolved Hide resolved
dace/data.py Outdated Show resolved Hide resolved
gronerl and others added 5 commits July 28, 2022 10:34
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
@tbennun tbennun merged commit d304d21 into spcl:master Jul 28, 2022
orausch added a commit that referenced this pull request Jul 31, 2022
PR #1071 introduced a regression here for torch tensors, since for them,
``is_array`` is true, but ``__array_interface__`` doesn't exist.
alexander-hammett pushed a commit to alexander-hammett/dace that referenced this pull request Sep 20, 2022
alexander-hammett pushed a commit to alexander-hammett/dace that referenced this pull request Sep 20, 2022
PR spcl#1071 introduced a regression here for torch tensors, since for them,
``is_array`` is true, but ``__array_interface__`` doesn't exist.
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

Successfully merging this pull request may close these issues.

None yet

2 participants