-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transformer: move Transformer related classes into onmt/modules/Trans…
…former.py 1) Move TransformerDecoder and TransformerDecoderState to onmt/modules/Transformer.py. 2) Rename the original TransformerDecoder to TransformerDecoderLayer. 3) Move DecoderState to onmt/Translator.py, otherwise we will circular dependency problem between onmt/Models.py and onmt/modules/Transformer.py.
- Loading branch information
1 parent
5c6e8f8
commit 82a07b3
Showing
3 changed files
with
166 additions
and
157 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