Skip to content

Commit

Permalink
Merge pull request #46 from haoransh/master
Browse files Browse the repository at this point in the history
fix the bugs in keyword argument pass
  • Loading branch information
ZhitingHu committed Nov 8, 2018
2 parents dd972bc + 325158a commit 9098cb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions texar/modules/decoders/transformer_decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ def default_hparams():
"poswise_feedforward": default_transformer_poswise_net_hparams(),
'multihead_attention': {
'num_units': 512,
'dropout_rate': 0.1,
'output_dim': 512,
'num_heads': 8,
},
"dim": 512,
Expand Down
2 changes: 2 additions & 0 deletions texar/modules/encoders/transformer_encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def default_hparams():
'poswise_feedforward': default_transformer_poswise_net_hparams(),
'multihead_attention': {
'num_units': 512,
'dropout_rate':0.1,
'output_dim': 512,
'num_heads': 8,
},
'dim': 512,
Expand Down

0 comments on commit 9098cb6

Please sign in to comment.