Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jul 29, 2024
1 parent 991b66b commit 8f8e6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -4491,11 +4491,11 @@ def test_compare_with_and_without_past_key_values(self, model_arch: str):
self.assertTrue(torch.equal(outputs_model_with_pkv, outputs_model_without_pkv))
self.assertEqual(
outputs_model_with_pkv.shape[1],
self.GENERATION_LENGTH + 2 if model_arch == "whisper" else self.GENERATION_LENGTH + 2,
self.GENERATION_LENGTH + 2 if model_arch == "whisper" else self.GENERATION_LENGTH + 1,
)
self.assertEqual(
outputs_model_without_pkv.shape[1],
self.GENERATION_LENGTH + 2 if model_arch == "whisper" else self.GENERATION_LENGTH + 2,
self.GENERATION_LENGTH + 2 if model_arch == "whisper" else self.GENERATION_LENGTH + 1,
)

self.GENERATION_LENGTH = generation_length
Expand Down

0 comments on commit 8f8e6ca

Please sign in to comment.