Skip to content

Commit

Permalink
Update tests/test_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel King <[email protected]>
  • Loading branch information
lorabit110 and dakinggg authored Sep 15, 2023
1 parent 950ef42 commit 2fad7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ def test_forward_with_output_attentions_and_output_hidden_states(

if output_attentions:
assert len(outputs.attentions) == n_layers
assert outputs.attentions[0] is not None
assert all(attn.shape == (1, 4, 2048, 2048) for attn in outputs.attentions)
if output_hidden_states:
assert len(outputs.hidden_states) == n_layers + 1

Expand Down

0 comments on commit 2fad7a5

Please sign in to comment.