Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
73caccde
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "228cdd6a6ea60da794dab84ebdd14ec4b09b9c00"
Unverified
Commit
73caccde
authored
Aug 16, 2021
by
Patrick von Platen
Committed by
GitHub
Aug 16, 2021
Browse files
fix bug (#13051)
parent
c066598c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
src/transformers/feature_extraction_sequence_utils.py
src/transformers/feature_extraction_sequence_utils.py
+1
-8
No files found.
src/transformers/feature_extraction_sequence_utils.py
View file @
73caccde
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment