提交 937cf5f0 编写于 作者: Y Yu Yang

Fix bug

上级 be5c8e56
...@@ -522,13 +522,13 @@ def wrap_decoder(trg_vocab_size, ...@@ -522,13 +522,13 @@ def wrap_decoder(trg_vocab_size,
x=dec_output, x=dec_output,
y=fluid.get_var(word_emb_param_names[0]), y=fluid.get_var(word_emb_param_names[0]),
transpose_y=True) transpose_y=True)
predict = layers.softmax(predict)
else: else:
predict = layers.fc(input=dec_output, predict = layers.fc(input=dec_output,
size=trg_vocab_size, size=trg_vocab_size,
bias_attr=False, bias_attr=False,
num_flatten_dims=2, num_flatten_dims=2)
act='softmax') if dec_inputs is None:
predict = layers.softmax(predict)
return predict return predict
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册