-
Notifications
You must be signed in to change notification settings - Fork 648
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
BatchNorm guide #2536
BatchNorm guide #2536
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
I think this is good, but it could help if the code could be fully copy-pasted. So maybe including all relevant import statements. I wouldn't use the word "just" since even though it's a small change the introduction of the Minor: |
4dc145f
to
2e8fe02
Compare
Codecov Report
@@ Coverage Diff @@
## main #2536 +/- ##
==========================================
+ Coverage 79.44% 80.78% +1.33%
==========================================
Files 49 50 +1
Lines 5211 5365 +154
==========================================
+ Hits 4140 4334 +194
+ Misses 1071 1031 -40
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
2e8fe02
to
96c89de
Compare
96c89de
to
d03c4e1
Compare
Hey @zaxtax, thanks for the feedback! What did you mean by:
Like a "copy to clipboard" widget? |
Oh I meant the example was completely self-contained and could be run if it
were cut-paste from the website directly into a notebook cell.
…On Fri, 4 Nov 2022, 21:58 Cristian Garcia, ***@***.***> wrote:
Hey @zaxtax <https://github.com/zaxtax>, thanks for the feedback! What
did you mean by:
I think this is good, but it could help if the code could be fully
copy-pasted.
Like a "copy to clipboard" widget?
—
Reply to this email directly, view it on GitHub
<#2536 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACCUKTK7W5XETE6P7QKF3WGV2H5ANCNFSM6AAAAAARFVJ27A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Makes sense! Once the content for this guide is finalized the idea is to copy this into a notebook and add an "open in colab" link. |
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.
This is really awesome, I don't have any useful critiques at the moment. lgtm!!!!
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.
Just some small nits, but overall looks really great! This is a super useful tutorial, BatchNorm is quite tricky and this guide explains exactly what needs to be changed.
LGTM, assuming you incorporate my changes.
85f064f
to
2e70431
Compare
Hey @marcvanzee! Is the ready to go? 🚀 |
Sure, I thought @8bitmp3 might want to have a look, but I think he has plenty of other tasks, and given that I already looked at it in quite some detail I think we can merge it. |
@8bitmp3 if you still have comments, feel free to create a new PR with suggested modifications. |
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.
Reviewed and updated. Thank you 👍
Thanks @8bitmp3, great improvements! |
What does this PR do?
Add a
Using BatchNorm
guide with the following content:batch_stats
collectionapply
TrainState
,train_step
, andeval_step
to handle a model with BatchNorm.Our
codediff
sphinx directive is use throughout to highlight the changes to add BatchNorm support for existing code.Live preview: https://flax--2536.org.readthedocs.build/en/2536/guides/batch_norm.html