提交 6b4d2744 编写于 作者: W wwhu

bug fix

上级 01f506b2
...@@ -75,7 +75,7 @@ def seqToseq_net(source_dict_dim, target_dict_dim, is_generating=False): ...@@ -75,7 +75,7 @@ def seqToseq_net(source_dict_dim, target_dict_dim, is_generating=False):
generated_word_memory = paddle.layer.memory( generated_word_memory = paddle.layer.memory(
name='generated_word', size=1, boot_with_const_id=0) name='generated_word', size=1, boot_with_const_id=0)
current_word = paddle.layer.multiplex([true_token_flag, true_word, generated_word_memory]) current_word = paddle.layer.multiplex(input=[true_token_flag, true_word, generated_word_memory])
with paddle.layer.mixed(size=decoder_size * 3) as decoder_inputs: with paddle.layer.mixed(size=decoder_size * 3) as decoder_inputs:
decoder_inputs += paddle.layer.full_matrix_projection(input=context) decoder_inputs += paddle.layer.full_matrix_projection(input=context)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册