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
0290ec19
Unverified
Commit
0290ec19
authored
Mar 09, 2024
by
Winston H
Committed by
GitHub
Mar 08, 2024
Browse files
feat: use `warning_advice` for tensorflow warning (#29540)
feat: use `warning_advice` instead of tensorflow warning
parent
469c1328
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/__init__.py
src/transformers/__init__.py
+1
-1
No files found.
src/transformers/__init__.py
View file @
0290ec19
...
@@ -9084,7 +9084,7 @@ else:
...
@@ -9084,7 +9084,7 @@ else:
if
not
is_tf_available
()
and
not
is_torch_available
()
and
not
is_flax_available
():
if
not
is_tf_available
()
and
not
is_torch_available
()
and
not
is_flax_available
():
logger
.
warning
(
logger
.
warning
_advice
(
"None of PyTorch, TensorFlow >= 2.0, or Flax have been found. "
"None of PyTorch, TensorFlow >= 2.0, or Flax have been found. "
"Models won't be available and only tokenizers, configuration "
"Models won't be available and only tokenizers, configuration "
"and file/data utilities can be used."
"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