Skip to content

Commit 397f819

Browse files
authored
Restore PaddingStrategy.MAX_LENGTH on QAPipeline while no v2. (#6875)
Signed-off-by: Morgan Funtowicz <[email protected]>
1 parent a32d85f commit 397f819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/pipelines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ def __call__(self, *args, **kwargs):
16741674
max_seq_length=kwargs["max_seq_len"],
16751675
doc_stride=kwargs["doc_stride"],
16761676
max_query_length=kwargs["max_question_len"],
1677-
padding_strategy=PaddingStrategy.DO_NOT_PAD.value,
1677+
padding_strategy=PaddingStrategy.MAX_LENGTH.value,
16781678
is_training=False,
16791679
tqdm_enabled=False,
16801680
)

0 commit comments

Comments
 (0)