feat: use warning_advice for tensorflow warning (#29540)

feat: use `warning_advice` instead of tensorflow warning
This commit is contained in:
Winston H 2024-03-09 01:27:30 +08:00 committed by GitHub
parent 469c13280d
commit 0290ec19c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."