Skip to content

WIP: implement {array_, VHD}split #46

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

Merged
merged 4 commits into from
Feb 7, 2023
Merged

WIP: implement {array_, VHD}split #46

merged 4 commits into from
Feb 7, 2023

Conversation

ev-br
Copy link
Collaborator

@ev-br ev-br commented Feb 7, 2023

The main difference with pytorch is that numpy expects indices_or_sections as indices into the array to split, while pytorch takes lengths of sections. Also some differences in what exactly happens when the length of the array to split is not equally divisible into sections. And some edge cases for when there are empty sections.

@ev-br ev-br marked this pull request as draft February 7, 2023 14:09
@ev-br ev-br marked this pull request as ready for review February 7, 2023 15:57
@ev-br ev-br requested a review from lezcano February 7, 2023 15:57
@ev-br
Copy link
Collaborator Author

ev-br commented Feb 7, 2023

Also tile and kron, let's pick low-hanging fruit now that I'm looking at this test file.

Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

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

Cool, just a few minor points.

@ev-br ev-br merged commit cdc6050 into main Feb 7, 2023
@ev-br ev-br deleted the splits branch February 7, 2023 17:33
@ev-br
Copy link
Collaborator Author

ev-br commented Feb 7, 2023

Thanks Mario for the review!

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.

2 participants