Skip to content

Commit

Permalink
fix all tests but one
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten committed Jun 29, 2020
1 parent c48bf39 commit 8185265
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transformers/modeling_longformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,6 @@ def forward(

pooled_output = self.dropout(pooled_output)
logits = self.classifier(pooled_output)
print(f"logits: {logits.shape}")
print(f"pooled_output: {pooled_output.shape}")
print(f"num_choices: {num_choices}")
reshaped_logits = logits.view(-1, num_choices)

outputs = (reshaped_logits,) + outputs[2:] # add hidden states and attention if they are here
Expand Down

0 comments on commit 8185265

Please sign in to comment.