未验证 提交 9b9bec5c 编写于 作者: J Jiabin Yang 提交者: GitHub

Fix dygraph transformer (#3000)

* using new load api

* fix transformer crashed when dropout seed get None
上级 d56c0b49
...@@ -110,7 +110,7 @@ class ModelHyperParams(object): ...@@ -110,7 +110,7 @@ class ModelHyperParams(object):
# to process after each sub-layer # to process after each sub-layer
postprocess_cmd = "da" # dropout + residual connection postprocess_cmd = "da" # dropout + residual connection
# random seed used in dropout for CE. # random seed used in dropout for CE.
dropout_seed = None dropout_seed = 0
# the flag indicating whether to share embedding and softmax weights. # the flag indicating whether to share embedding and softmax weights.
# vocabularies in source and target should be same for weight sharing. # vocabularies in source and target should be same for weight sharing.
weight_sharing = False weight_sharing = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册