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

Fix bug

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