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/docs/chunk #1006

Merged
merged 2 commits into from
Nov 29, 2023
Merged

fix/docs/chunk #1006

merged 2 commits into from
Nov 29, 2023

Conversation

louisfd
Copy link
Member

@louisfd louisfd commented Nov 27, 2023

@dcvz
I was a bit late to review your chunk operation. It's very nice but I found something was wrong with the doc. I made a test that explains why I'm changing it. Is this the behaviour you want?

@dcvz
Copy link
Contributor

dcvz commented Nov 27, 2023

@louisfd unfortunately no, it should hold true. The last tensor should've had 9 items and the others 13. My aim was to match the API that's expected from other ML libraries. I'll can take a look later today and make sure this test also passes.

@dcvz
Copy link
Contributor

dcvz commented Nov 27, 2023

As mentioned I can look later today, but if you wanna change it in this PR you can as well :)

@louisfd
Copy link
Member Author

louisfd commented Nov 27, 2023

All right, I hesitated between fixing the code or the doc!
I will fix the code right away

@louisfd
Copy link
Member Author

louisfd commented Nov 27, 2023

@dcvz now it should have the right behaviour

Copy link
Contributor

@dcvz dcvz left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Thanks for fixing it! Separating the happy path and not also makes it easier to understand than calculating current chunk size in the same loop.

@nathanielsimard nathanielsimard merged commit aa3180d into main Nov 29, 2023
7 checks passed
@nathanielsimard nathanielsimard deleted the fix/docs/chunk branch November 29, 2023 14:38
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