-
Notifications
You must be signed in to change notification settings - Fork 615
group normalization layer test #766
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
Conversation
Hi @Squadrick, can you please help review when you have time? Thank you. |
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.
@autoih Sorry about the delay. Just a few small changes.
Also, use self.assert*
functions instead of np.testing.assert*
.
This comment has been minimized.
This comment has been minimized.
@googlebot I consent |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
@autoih I've merged master into your branch to update it and fixed any formatting/conflicts it might have. If you need to do some more modifications, please do |
Thanks @gabrieldemarmiesse for the reminder. Also, can you please guide me to fix error? |
It seems it was just an internet connection issue. I'll restart the tests and hopefully it will work. |
Thanks @gabrieldemarmiesse. |
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.
Hard code the initialize random seed since you're using np.random*
. I'm gonna trigger GPU tests.
out -= tf.keras.backend.eval(norm.beta) | ||
out /= tf.keras.backend.eval(norm.gamma) |
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.
You've used both self.evaluate
and tf.keras.backend.eval
. Stick to the former throughout 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.
Thanks @Squadrick. Do you also suggest using seed for tf.random, like here?
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.
Yup, that too. Forgot to mention it.
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.
Thank you for the pull request!
* init testing * use np assert_allclose * add no center and scale test * sanitycheck * add test * revise based on comments * add random seed Co-authored-by: Gabriel de Marmiesse <gabrieldemarmiesse@gmail.com>
Address #731