From fb1a93a8ab939b44e95ebfd59124704292b9f2db Mon Sep 17 00:00:00 2001 From: ronnywang Date: Wed, 29 Jun 2022 10:22:52 +0800 Subject: [PATCH] fix custom_device log (#43890) --- paddle/fluid/pybind/pybind.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index e02d5cee3dc..c294c8eb4a7 100644 --- a/paddle/fluid/pybind/pybind.cc +++ b/paddle/fluid/pybind/pybind.cc @@ -2217,12 +2217,12 @@ All parameter, weight, gradient are variables in Paddle. #ifdef PADDLE_WITH_CUSTOM_DEVICE device_types = phi::DeviceManager::GetAllDeviceTypes(); #else - LOG(WARNING) << string::Sprintf( + VLOG(1) << string::Sprintf( "Cannot use get_all_device_type because you have installed" "CPU/GPU version PaddlePaddle.\n" "If you want to use get_all_device_type, please try to install" "CustomDevice version " - "PaddlePaddle by: pip install paddlepaddle-core\n"); + "PaddlePaddle by: pip install paddlepaddle\n"); #endif return device_types; }); @@ -2231,12 +2231,12 @@ All parameter, weight, gradient are variables in Paddle. #ifdef PADDLE_WITH_CUSTOM_DEVICE device_types = phi::DeviceManager::GetAllCustomDeviceTypes(); #else - LOG(WARNING) << string::Sprintf( + VLOG(1) << string::Sprintf( "Cannot use get_all_custom_device_type because you have installed" "CPU/GPU version PaddlePaddle.\n" "If you want to use get_all_custom_device_type, please try to " "install CustomDevice version " - "PaddlePaddle by: pip install paddlepaddle-core\n"); + "PaddlePaddle by: pip install paddlepaddle\n"); #endif return device_types; }); @@ -2245,12 +2245,12 @@ All parameter, weight, gradient are variables in Paddle. #ifdef PADDLE_WITH_CUSTOM_DEVICE devices = phi::DeviceManager::GetAllDeviceList(); #else - LOG(WARNING) << string::Sprintf( + VLOG(1) << string::Sprintf( "Cannot use get_available_device because you have installed" "CPU/GPU version PaddlePaddle.\n" "If you want to use get_available_device, please try to install" "CustomDevice version " - "PaddlePaddle by: pip install paddlepaddle-core\n"); + "PaddlePaddle by: pip install paddlepaddle\n"); #endif return devices; }); @@ -2259,14 +2259,14 @@ All parameter, weight, gradient are variables in Paddle. #ifdef PADDLE_WITH_CUSTOM_DEVICE devices = phi::DeviceManager::GetAllCustomDeviceList(); #else - LOG(WARNING) << string::Sprintf( + VLOG(1) << string::Sprintf( "Cannot use get_available_custom_device because you have " "installed" "CPU/GPU version PaddlePaddle.\n" "If you want to use get_available_custom_device, please try to " "install" "CustomDevice version " - "PaddlePaddle by: pip install paddlepaddle-core\n"); + "PaddlePaddle by: pip install paddlepaddle\n"); #endif return devices; }); @@ -2340,7 +2340,7 @@ All parameter, weight, gradient are variables in Paddle. "version PaddlePaddle.\n" "If you want to use CustomDevice, please try to install" "CustomDevice version " - "PaddlePaddle by: pip install paddlepaddle-core\n" + "PaddlePaddle by: pip install paddlepaddle\n" "If you only have CPU, please change " "CustomPlace(%s, %d) to be CPUPlace().\n", device_type, dev_id); -- GitLab