-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix xpu error message #28061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix xpu error message #28061
Conversation
|
Thanks for your contribution! |
| } else if (r == xpu::Error_t::RUNTIME_ERROR) { | ||
| PADDLE_ENFORCE_EQ( | ||
| r, xpu::Error_t::SUCCESS, | ||
| platform::errors::PermissionDenied( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe Unavailable is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| "please check whether Baidu Kunlun card is properly installed.")); | ||
| } else if (r == xpu::Error_t::NO_ENOUGH_WORKSPACE) { | ||
| PADDLE_ENFORCE_EQ(r, xpu::Error_t::SUCCESS, | ||
| platform::errors::OutOfRange( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe ResourceExhausted is better?
| "XPU kernel error of SgdOp, error message: INVALID_PARAM, " | ||
| "please check your input & output.")); | ||
| } else if (r == xpu::Error_t::RUNTIME_ERROR) { | ||
| PADDLE_ENFORCE_EQ(r, xpu::Error_t::SUCCESS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
| } else if (r == xpu::Error_t::NO_ENOUGH_WORKSPACE) { | ||
| PADDLE_ENFORCE_EQ( | ||
| r, xpu::Error_t::SUCCESS, | ||
| platform::errors::OutOfRange("XPU kernel error of SgdOp, error " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
chenwhql
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix error message,test=kunlun * fix, test=kunlun
PR types
Bug fixes
PR changes
OPs
Describe
修复sgd、momentum xpu op的报错信息