-
Notifications
You must be signed in to change notification settings - Fork 204
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
update jax.tree.map to comply with jax 0.4.34 #1094
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing that!
Would it be possible to add a generic test for such functions?
(tree_update_moment, tree_update_infinity_moment and tree_update_moment_per_elem_norm follow the same fix).
Thanks again!
Happy to do that. How would you imagine this test to be fully generic? A simple test case would be something like this (extended to all corresponding functions):
Let me know what you think. |
Yes, I would even simplify it by using just |
I have added test cases for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, I left you some additional comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's perfect, thank you again @a1302z !
Pull Request to fix #1093