-
Couldn't load subscription status.
- Fork 5.9k
add attribute for batch_norm #29950
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
add attribute for batch_norm #29950
Conversation
|
Thanks for your contribution! |
python/paddle/nn/functional/norm.py
Outdated
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.
这块的英文文档要不也添加下?
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.
done,thanks
0ae597a to
03f0c63
Compare
26a5f16 to
41b8fb6
Compare
41b8fb6 to
3c1f8c1
Compare
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.
Paddle/python/paddle/nn/layer/norm.py
Line 633 in 8388abe
| warnings.warn( |
这里是不是也要更新。
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.
LGTM
这里是因为我们现在在training模式还是会计算所有global stats,这个参数是控制用不用global stats~ |
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.
lgtm
* add attribute for batch_norm
* add attribute for batch_norm
PR types
Function optimization
PR changes
APIs
Describe
add use_global_stats attribute for batch_norm.