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

User driven getitem and construction #60

Merged
merged 8 commits into from
Aug 29, 2024
Merged

Conversation

adityagoel4512
Copy link
Member

@adityagoel4512 adityagoel4512 commented Aug 23, 2024

Array construction is offloaded to the dtype. Previously this assumed all fields are equivalent shape. Nothing should change for existing implementations. User-defined dtypes with representations where fields are not all equivalent shape (e.g. a List) can now be constructed.

getitem is also offloaded to the dtype. Nothing should change here either for existing implementations.

I have left setitem out now. I would like to ensure that setitem doesn't change the dtype of the array being set and do this in a later PR.

@adityagoel4512 adityagoel4512 force-pushed the construct-member branch 4 times, most recently from 1bee70d to e762a8a Compare August 24, 2024 12:26
Copy link
Collaborator

@cbourjau cbourjau left a comment

Choose a reason for hiding this comment

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

Thanks! I left some minor comments.

CHANGELOG.rst Outdated Show resolved Hide resolved
ndonnx/_core/_coreimpl.py Outdated Show resolved Hide resolved
ndonnx/additional/_additional.py Outdated Show resolved Hide resolved
ndonnx/additional/_additional.py Show resolved Hide resolved
@adityagoel4512 adityagoel4512 merged commit 60c3bd2 into main Aug 29, 2024
16 checks passed
@adityagoel4512 adityagoel4512 deleted the construct-member branch August 29, 2024 10:19
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.

3 participants