Skip to content

Commit

Permalink
Fix dygraph transformer (PaddlePaddle#3000)
Browse files Browse the repository at this point in the history
* using new load api

* fix transformer crashed when dropout seed get None
  • Loading branch information
JiabinYang authored Aug 1, 2019
1 parent d56c0b4 commit 9b9bec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dygraph/transformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ModelHyperParams(object):
# to process after each sub-layer
postprocess_cmd = "da" # dropout + residual connection
# random seed used in dropout for CE.
dropout_seed = None
dropout_seed = 0
# the flag indicating whether to share embedding and softmax weights.
# vocabularies in source and target should be same for weight sharing.
weight_sharing = False
Expand Down

0 comments on commit 9b9bec5

Please sign in to comment.