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

Return type is tuple of solution and nfe not just solution #3

Open
FedericoV opened this issue Jan 20, 2021 · 3 comments
Open

Return type is tuple of solution and nfe not just solution #3

FedericoV opened this issue Jan 20, 2021 · 3 comments

Comments

@FedericoV
Copy link

FedericoV commented Jan 20, 2021

The return type is actually a tuple of the solution and the number of function evaluations:

return jax.vmap(unravel)(out), nfe

Super easy to clean up, I just thought it was some issues with pytrees the first time I came across it.

I'm currently going through the repo to understand the code base a bit better: would you prefer if I opened an issue for every tiny thing I find, or would it be easier to work with a general clean up PR?

@jacobjinkelly
Copy link
Owner

Hi @FedericoV, good catch, thanks for bringing this up! There are probably a number of spots where the docstring is different from what the code actually does, my apologies.

If you're able to, one PR for any general clean-up you find would be great! But of course feel free to open several PRs/issues as you see fit if the topics are distinct. If anything is confusing or unclear, definitely err on the side of making an issue for it instead of spending a lot of time trying to figure it out, as it's probably a silly mistake on my end :p

@FedericoV
Copy link
Author

FedericoV commented Jan 21, 2021 via email

@jacobjinkelly
Copy link
Owner

I would recommend having a look at the tests for jet which can be found here

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

No branches or pull requests

2 participants