From 3bbe68f8372dac1815971ac0a0360fff97a1218d Mon Sep 17 00:00:00 2001 From: Lysandre Debut Date: Wed, 25 Aug 2021 18:41:26 +0200 Subject: [PATCH] Hubert test fix (#13261) --- tests/test_modeling_hubert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_modeling_hubert.py b/tests/test_modeling_hubert.py index 206f5be5a7..c42014d6a7 100644 --- a/tests/test_modeling_hubert.py +++ b/tests/test_modeling_hubert.py @@ -563,7 +563,7 @@ class HubertModelIntegrationTest(unittest.TestCase): input_speech = self._load_datasamples(2) - inputs = processor(input_speech, return_tensors="pt", padding=True, truncation=True) + inputs = processor(input_speech, return_tensors="pt", padding=True) input_values = inputs.input_values.to(torch_device) attention_mask = inputs.attention_mask.to(torch_device)