Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhwinter committed Mar 22, 2018
1 parent 2aef736 commit 8b8c9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluid/machine_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def simple_attention(encoder_vec, encoder_proj, decoder_state):
decoder_state_expand = fluid.layers.sequence_expand(
x=decoder_state_proj, y=encoder_proj)
concated = fluid.layers.concat(
input=[decoder_state_expand, encoder_proj], axis=1)
input=[encoder_proj, decoder_state_expand], axis=1)
attention_weights = fluid.layers.fc(input=concated,
size=1,
act='tanh',
Expand Down

0 comments on commit 8b8c9be

Please sign in to comment.