-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LayernormSimpleRNN moved to addons (#841)
* LayernormSimpleRNN moved to addons * code-format run * use super instead of calling the parent class * deactivate layernorm's bias term (beta) for centering, and apply the normal self.bias term after scaling with layernorm for centering. docstring with explanatory formulas added to cell's call method * use_layernorm=True set as default * import alligned with cell.py, examples in docstring corrected * import aligned with cell_test.py * code for LayernormSimpleRNN moved into cell.py and cell_test.py * pylint errors corrected * bazel's timeout increased from small to large for cell_test.py * test with training deactivated * non-ascii char replaced * dict syntax for python2 changed * Renamed to LayerNorm... * direct parent class call replaced with super * error due to import change corrected * uncomment line * unit test added * Name change in unit test file * Still the class name change * deleted dtype and trainable args for parent class * remove self for super parent class calls * compare arrays with assertAllEqual * use_layernorm removed * dict removed from return statement * LayerNormSimpleRNN removed, use kwargs, comments removed * forward **kwargs to other layers * a more pythonic dict loop
- Loading branch information
Showing
3 changed files
with
291 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters