Skip to content

Commit

Permalink
[pybind] Fix a typo installedCPU/GPU -> installed CPU/GPU (#62938)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil authored Mar 22, 2024
1 parent abfe394 commit 6ac9a4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
14 changes: 6 additions & 8 deletions paddle/fluid/pybind/pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand All @@ -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");
Expand All @@ -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 "
Expand All @@ -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 "
Expand All @@ -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 "
Expand Down

0 comments on commit 6ac9a4c

Please sign in to comment.