diff --git a/scheduled_sampling/scheduled_sampling.py b/scheduled_sampling/scheduled_sampling.py index 74e22da6cb335b7effd91768faa120e3844e12cc..3e58786f36a4aa7ae8a63436bb147bfa98725747 100644 --- a/scheduled_sampling/scheduled_sampling.py +++ b/scheduled_sampling/scheduled_sampling.py @@ -75,7 +75,7 @@ def seqToseq_net(source_dict_dim, target_dict_dim, is_generating=False): generated_word_memory = paddle.layer.memory( 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: decoder_inputs += paddle.layer.full_matrix_projection(input=context)