[Whisper] fix shape mismatch in tests (#39074)

fix shape mismatch
This commit is contained in:
eustlb 2025-06-27 11:27:42 +02:00 committed by GitHub
parent a52478253b
commit 1ccc73dee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2040,7 +2040,7 @@ class WhisperModelIntegrationTests(unittest.TestCase):
[50365, 2221, 13, 2326, 388, 391, 307, 264, 50244, 295, 264, 2808, 5359, 11, 293, 321, 366, 5404, 281, 2928, 702, 14943, 13, 50629, 50682, 6966, 307, 2221, 13, 2326, 388, 391, 311, 9060, 1570, 1880, 813, 702, 1871, 13, 50870, 50911, 634, 5112, 505, 300, 412, 341, 42729, 3196, 295, 264, 1064, 11, 365, 5272, 293, 12904, 9256, 450, 10539, 949, 505, 11, 51245, 51287, 1034, 4680, 10117, 490, 3936, 293, 1080, 3542, 5160, 881, 26336, 281, 264, 1575, 13, 51494, 51523, 634, 575, 12525, 22618, 1968, 6144, 35617, 1456, 397, 266, 311, 589, 307, 534, 10281, 934, 439, 11, 51799, 51815, 50365, 293, 393, 4411, 50431]
])
# fmt: on
torch.testing.assert_close(generated_ids[0], EXPECTED_OUTPUT)
torch.testing.assert_close(generated_ids, EXPECTED_OUTPUT)
EXPECTED_TRANSCRIPT = [
{