Skip to content

Commit

Permalink
fix the undefined variable bug in dist_transformer file (#36211)
Browse files Browse the repository at this point in the history
  • Loading branch information
youth123 authored Sep 30, 2021
1 parent 21b93c3 commit 8af939f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/dist_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ def wrap_decoder(trg_vocab_size,
# This is used to implement independent decoder program in inference.
trg_word, trg_pos, trg_slf_attn_bias, trg_src_attn_bias, \
enc_output = make_all_inputs(
decoder_data_input_fields + decoder_util_input_fields)
decoder_data_input_fields)
else:
trg_word, trg_pos, trg_slf_attn_bias, trg_src_attn_bias = dec_inputs

Expand Down

0 comments on commit 8af939f

Please sign in to comment.