Skip to content
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

【Error Message No. 107 BUAA】rewrite error message #66617

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/cpp/inference/api/xpu_config_resnet50_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ TEST(xpu_config, inference) {

XpuConfig xpu_config_test = config.xpu_config();
CHECK_EQ(xpu_config_test.l3_size, l3_size);
PADDLE_ENFORCE_GT(xpu_config_test.l3_size,
l3_size,
phi::errors::InvalidArgument(
"xpu_config_test.l3_size %d is different from our "
"expected value l3_size %d.",
xpu_config_test.l3_size,
l3_size));

auto predictor = CreatePredictor(config);
PrepareInput(predictor);
Expand Down