-
Notifications
You must be signed in to change notification settings - Fork 161
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
Implement split real norm #241
Implement split real norm #241
Conversation
Hi! Thanks a lot for the PR! |
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.
Hey!
Thank you so much for this PR and your detailed explanation in the gist attached to #196. This was super helpful for the review.
I think it looks great! I just have a few very minor comments and nits.
Thanks a lot again and let me know if you have any questions regarding the comments!
Hi @mkunesch , thanks for your detailed review! I've made the changes accordingly. |
Looks great! Thanks for making the changes! |
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.
Thanks! It's really great to see these additions :)
I left a bunch of thoughts to compliment @mkunesch 's review - I'll let him take over in managing getting this thing merged, though :)
* Change RealPair to NamedTuple * Remove _is_real_pair
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.
Thanks a lot @rosshemsley for the additional comments and @wdphy16 for implementing them!
I've added the
|
Hi! Thanks a lot! It looks great to me! (Only flagged a missing full stop above) Re the import error: I mean, we can easily disable it (for |
+1 to @mkunesch - I would go for
|
Ok, this project structure is also more intuitive to me |
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.
Thanks a lot! Looks great to me. I like the folder structure and it passes the tests/lint checks.
Thanks a lot for the contribution again and for making the changes!
Hi @mkunesch , shall we merge this now? |
Hi! This got merged yesterday :-D! (Sorry it took slightly longer - it was blocked by a flaky test d663336). Thank you very much for this PR again and for all your work (especially the excellent design doc!) on how to support complex numbers in optax! |
As proposed in #196, it is an optimizer wrapper that splits the complex parameters into pairs of real parameters before sending them to the
update
of the wrapped optimizer, and merges the pairs of real updates into complex updates afterward.