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

Input size checks #241

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Input size checks #241

merged 3 commits into from
Aug 29, 2024

Conversation

WardBrian
Copy link
Collaborator

Would close #239

I only timed this in Python, where I was not really able to consistently time a difference even in a very simple log density.

Note: Some existing code will fail after this is merged, even if that code is technically buggy. Worth noting in the release notes.

Copy link
Owner

@roualdes roualdes left a comment

Choose a reason for hiding this comment

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

Sorry for the super slow response on this. My bad.

This looks good to me.

It's nice in Python that we're getting some good use out of the array_ptr class. Keeps the implementation cleaner than in Julia or R.

Does the Rust implementation already do size checks?

@WardBrian
Copy link
Collaborator Author

Rust already did, yes

@WardBrian WardBrian merged commit 340cb04 into main Aug 29, 2024
19 checks passed
@WardBrian WardBrian deleted the input-size-checks branch August 29, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parameter sizes not checked in log_density_gradient
2 participants