Skip to content

Commit

Permalink
Revert "[cleanup] remove confusing newline (huggingface#6603)"
Browse files Browse the repository at this point in the history
This reverts commit f7f19c8.
  • Loading branch information
fabiocapsouza authored Nov 15, 2020
1 parent 91c5f44 commit 424f76a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/generation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def generate(

# get encoder and store encoder outputs
encoder = self.get_encoder()

encoder_outputs: tuple = encoder(input_ids, attention_mask=attention_mask)

# Expand input ids if num_beams > 1 or num_return_sequences > 1
Expand Down

0 comments on commit 424f76a

Please sign in to comment.