diff --git a/paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc b/paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc index 8268e98f4e5906..1e093f7247320c 100644 --- a/paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc +++ b/paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc @@ -478,7 +478,7 @@ void ApplyDeviceGuard(const OperatorBase* op_base, op_device)); #else VLOG(1) << string::Sprintf( - "Cannot use get_all_custom_device_type because you have installed" + "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 " diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index 8747b70414ddc5..14e8d5cff0a537 100644 --- a/paddle/fluid/pybind/pybind.cc +++ b/paddle/fluid/pybind/pybind.cc @@ -1808,7 +1808,7 @@ All parameter, weight, gradient are variables in Paddle. device_types = phi::DeviceManager::GetAllDeviceTypes(); #else VLOG(1) << string::Sprintf( - "Cannot use get_all_device_type because you have installed" + "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 " @@ -1822,8 +1822,8 @@ All parameter, weight, gradient are variables in Paddle. device_types = phi::DeviceManager::GetAllCustomDeviceTypes(); #else VLOG(1) << string::Sprintf( - "Cannot use get_all_custom_device_type because you have installed" - "CPU/GPU version PaddlePaddle.\n" + "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\n"); @@ -1836,7 +1836,7 @@ All parameter, weight, gradient are variables in Paddle. devices = phi::DeviceManager::GetAllDeviceList(); #else VLOG(1) << string::Sprintf( - "Cannot use get_available_device because you have installed" + "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 " @@ -1851,8 +1851,7 @@ All parameter, weight, gradient are variables in Paddle. #else VLOG(1) << string::Sprintf( "Cannot use get_available_custom_device because you have " - "installed" - "CPU/GPU version PaddlePaddle.\n" + "installed CPU/GPU version PaddlePaddle.\n" "If you want to use get_available_custom_device, please try to " "install" "CustomDevice version " @@ -1870,8 +1869,7 @@ All parameter, weight, gradient are variables in Paddle. #else VLOG(1) << string::Sprintf( "Cannot use get_custom_device_count because you have " - "installed" - "CPU/GPU version PaddlePaddle.\n" + "installed CPU/GPU version PaddlePaddle.\n" "If you want to use get_custom_device_count, please try to " "install" "CustomDevice version "