Skip to content

Commit

Permalink
feat: use warning_advice for tensorflow warning (#29540)
Browse files Browse the repository at this point in the history
feat: use `warning_advice` instead of tensorflow warning
  • Loading branch information
winstxnhdw authored Mar 8, 2024
1 parent 469c132 commit 0290ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9084,7 +9084,7 @@


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. "
"Models won't be available and only tokenizers, configuration "
"and file/data utilities can be used."
Expand Down

0 comments on commit 0290ec1

Please sign in to comment.