-
Notifications
You must be signed in to change notification settings - Fork 136
[Initializers] Refactor random and variance-scaling initializers #335
Conversation
Co-Authored-By: Richard Wei <rxwei@google.com>
|
The error here is But i thought we commented out the RNN tests due to variation of outputs. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
Hi, looks like there was a CI failure on this one. Could you take a look? Once we get CI passing, this should be ready to merge! |
…ift-apis into initializers/refactor
|
Hey @marcrasi! Everything should be good to go. Let me know if anything needs to be addressed. :) |
|
It looks like this has broken |
|
It is expected. The previous implementations of I've updated the hardcoded values in the tests you've mentioned. :) |
|
This passes locally but the kokoro build results show a discrepancy between values and expected-values in only the least significant digits. This is probably just a difference in float precision round-off. I'm going to add a bit of accuracy tolerance in the equality assertions to remediate this for now. |
|
Yay, it passed, thanks! Merging. |
|
No problem! Thanks for the help :) |
Summary
Random Initializers
testRandomUniform(),testRandomNormal(), andtestTruncatedNormal().Variance-Scaling Initializers
fanInandfanOut.glorotinitializers.glorotNormalto usetruncatedNormalinitialization.testGlorotUniform()andtestGlorotNormal().