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
0deece9c
Unverified
Commit
0deece9c
authored
Dec 03, 2020
by
Skye Wanderman-Milne
Committed by
GitHub
Dec 03, 2020
Browse files
Don't warn that models aren't available if Flax is available. (#8841)
parent
2b7fc9a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/__init__.py
src/transformers/__init__.py
+2
-2
No files found.
src/transformers/__init__.py
View file @
0deece9c
...
...
@@ -903,9 +903,9 @@ else:
from
.utils.dummy_flax_objects
import
*
if
not
is_tf_available
()
and
not
is_torch_available
():
if
not
is_tf_available
()
and
not
is_torch_available
()
and
not
is_flax_available
()
:
logger
.
warning
(
"N
either
PyTorch
nor
TensorFlow >= 2.0 have been found. "
"N
one of
PyTorch
,
TensorFlow >= 2.0
, or Flax
have been found. "
"Models won't be available and only tokenizers, configuration "
"and file/data utilities can be used."
)
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