Use INFO logging for device deprecation, for easier filtering.

PiperOrigin-RevId: 313414703
Change-Id: I2d496e7ae3381b469d7da8eda55a8886a9936a24
This commit is contained in:
Davide Libenzi 2020-05-27 10:23:22 -07:00 committed by TensorFlower Gardener
parent a67ee929f5
commit 624390fc19
1 changed files with 5 additions and 6 deletions

View File

@ -395,8 +395,7 @@ static void ShowXlaDeviceDeprecationWarning(
if (absl::StrContains(compilation_device_name, "CPU") ||
absl::StrContains(compilation_device_name, "GPU")) {
absl::call_once(once, [] {
LOG(WARNING)
<< "XLA_GPU and XLA_CPU devices are deprecated and will be "
LOG(INFO) << "XLA_GPU and XLA_CPU devices are deprecated and will be "
"removed in subsequent releases. Instead, use either "
"@tf.function(experimental_compile=True) for must-compile "
"semantics, or run with TF_XLA_FLAGS=--tf_xla_auto_jit=2 "