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
451df725
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "3f20877da96bd9a14aeccf30f1399bd913ff74cf"
Unverified
Commit
451df725
authored
Sep 21, 2022
by
Sylvain Gugger
Committed by
GitHub
Sep 21, 2022
Browse files
Fix dummy creation for multi-frameworks objects (#19144)
parent
66154a6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils/check_dummies.py
utils/check_dummies.py
+1
-1
No files found.
utils/check_dummies.py
View file @
451df725
...
@@ -26,7 +26,7 @@ PATH_TO_TRANSFORMERS = "src/transformers"
...
@@ -26,7 +26,7 @@ PATH_TO_TRANSFORMERS = "src/transformers"
_re_backend
=
re
.
compile
(
r
"is\_([a-z_]*)_available()"
)
_re_backend
=
re
.
compile
(
r
"is\_([a-z_]*)_available()"
)
# Matches from xxx import bla
# Matches from xxx import bla
_re_single_line_import
=
re
.
compile
(
r
"\s+from\s+\S*\s+import\s+([^\(\s].*)\n"
)
_re_single_line_import
=
re
.
compile
(
r
"\s+from\s+\S*\s+import\s+([^\(\s].*)\n"
)
_re_test_backend
=
re
.
compile
(
r
"^\s+if\s+not\s+is\_[a-z_]*\_available\(\)"
)
_re_test_backend
=
re
.
compile
(
r
"^\s+if\s+not\s+
\(?
is\_[a-z_]*\_available\(\)"
)
DUMMY_CONSTANT
=
"""
DUMMY_CONSTANT
=
"""
...
...
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