-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model.py: renaming variables, removing dropout from lstm cell state, …
…removing conversions now handled by amp
- Loading branch information
1 parent
087c867
commit 1480f82
Showing
1 changed file
with
5 additions
and
17 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
1480f82
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.
why remove dropout in the lstm unit?
1480f82
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.
the dropout is only removed from the cell state, not the hidden state. It is removed because at every decoder iteration it scales the cell state by 1/ (1-p), creating an exponential grown on the cell state value that disturbs FP16 training.