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

Fix NDArray slice size #550

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Fix NDArray slice size #550

merged 1 commit into from
Jan 22, 2021

Conversation

zachgk
Copy link
Contributor

@zachgk zachgk commented Jan 21, 2021

When slicing an NDArray, the result shape should be the ceiling rather than the
floor of the shapes. Or, even if the shape can't be perfectly divided then it
should take the additional value.

fixes #383

When slicing an NDArray, the result shape should be the ceiling rather than the
floor of the shapes. Or, even if the shape can't be perfectly divided then it
should take the additional value.

Change-Id: Ib9b31f524283559a8a0ae06bdd8e29e1eeb18538
@zachgk zachgk requested a review from a team January 21, 2021 01:32
@zachgk zachgk merged commit 4ccf320 into deepjavalibrary:master Jan 22, 2021
@zachgk zachgk deleted the sliceBug branch January 22, 2021 23:00
Lokiiiiii pushed a commit to Lokiiiiii/djl that referenced this pull request Oct 10, 2023
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.

Possible NDArray Splicing Bug
2 participants