From 0290ec19c901adc0f1230ebdccad11c40af026f5 Mon Sep 17 00:00:00 2001 From: Winston H <56998716+winstxnhdw@users.noreply.github.com> Date: Sat, 9 Mar 2024 01:27:30 +0800 Subject: [PATCH] feat: use `warning_advice` for tensorflow warning (#29540) feat: use `warning_advice` instead of tensorflow warning --- src/transformers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/__init__.py b/src/transformers/__init__.py index 72bfb4b465c530..7297c1359e4ce0 100644 --- a/src/transformers/__init__.py +++ b/src/transformers/__init__.py @@ -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."