-
Notifications
You must be signed in to change notification settings - Fork 323
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 biasScaleShape of GroupNormalizationV21 to support ranks > 4 #3030
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Rickert, Jonas <[email protected]>
@jorickert Hello!! Can you direct me to the link or document which validates your findings please? I just want to have a better understanding. Thank you! |
@hamptonm1 The formula for GroupNorm is: Internally, the GroupNorm reshapes the input to The decomposition/conversion mimics this:
While writing this down, I realized, that the lit tests are still wrong for GroupNormV21. The input scale and bias have the size |
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, let me know if you need me to merge it (and if so, when you are ready to do so),
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.
Reminder to update the bias and scale size in the lit test inputs
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.
Okay it works for me then!
Before this PR the
oneDimShape
assumed a spacial rank of two, which is only correct for rank==4.