Unverified Commit 73caccde authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

fix bug (#13051)

parent c066598c
...@@ -225,16 +225,9 @@ class SequenceFeatureExtractor(FeatureExtractionMixin): ...@@ -225,16 +225,9 @@ class SequenceFeatureExtractor(FeatureExtractionMixin):
batch_outputs = {} batch_outputs = {}
for i in range(batch_size): for i in range(batch_size):
# truncation
inputs = self._truncate(
truncated_inputs[i],
max_length=max_length,
pad_to_multiple_of=pad_to_multiple_of,
truncation=truncation,
)
# padding # padding
outputs = self._pad( outputs = self._pad(
inputs, truncated_inputs[i],
max_length=max_length, max_length=max_length,
padding_strategy=padding_strategy, padding_strategy=padding_strategy,
pad_to_multiple_of=pad_to_multiple_of, pad_to_multiple_of=pad_to_multiple_of,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment