-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix syncbn #32989
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
Fix syncbn #32989
Conversation
|
Thanks for your contribution! |
python/paddle/nn/layer/norm.py
Outdated
| ) | ||
|
|
||
| def forward(self, x): | ||
| self._check_data_format(self._data_format) |
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.
_check_data_format这个方法名体现不出你要对self._data_format做inplace的修改。
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.
这个函数的作用应该主要是为了检查 data_format
PR types
Bug fixes
PR changes
APIs
Describe
add check_data_format for syncbn