mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
feat: use warning_advice
for tensorflow warning (#29540)
feat: use `warning_advice` instead of tensorflow warning
This commit is contained in:
parent
469c13280d
commit
0290ec19c9
@ -9084,7 +9084,7 @@ else:
|
||||
|
||||
|
||||
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."
|
||||
|
Loading…
Reference in New Issue
Block a user