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
f2e90bcb
Unverified
Commit
f2e90bcb
authored
Nov 24, 2021
by
Lysandre Debut
Committed by
GitHub
Nov 24, 2021
Browse files
Fix feature extraction utils import (#14515)
parent
6c4d688f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/transformers/__init__.py
src/transformers/__init__.py
+4
-2
No files found.
src/transformers/__init__.py
View file @
f2e90bcb
...
@@ -94,7 +94,8 @@ _import_structure = {
...
@@ -94,7 +94,8 @@ _import_structure = {
"DataCollatorWithPadding"
,
"DataCollatorWithPadding"
,
"default_data_collator"
,
"default_data_collator"
,
],
],
"feature_extraction_sequence_utils"
:
[
"BatchFeature"
,
"SequenceFeatureExtractor"
],
"feature_extraction_sequence_utils"
:
[
"SequenceFeatureExtractor"
],
"feature_extraction_utils"
:
[
"BatchFeature"
],
"file_utils"
:
[
"file_utils"
:
[
"CONFIG_NAME"
,
"CONFIG_NAME"
,
"MODEL_CARD_NAME"
,
"MODEL_CARD_NAME"
,
...
@@ -2059,9 +2060,10 @@ if TYPE_CHECKING:
...
@@ -2059,9 +2060,10 @@ if TYPE_CHECKING:
DataCollatorWithPadding
,
DataCollatorWithPadding
,
default_data_collator
,
default_data_collator
,
)
)
from
.feature_extraction_sequence_utils
import
SequenceFeatureExtractor
# Feature Extractor
# Feature Extractor
from
.feature_extraction_utils
import
BatchFeature
,
SequenceFeatureExtractor
from
.feature_extraction_utils
import
BatchFeature
# Files and general utilities
# Files and general utilities
from
.file_utils
import
(
from
.file_utils
import
(
...
...
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