Skip to content

Commit

Permalink
fix codestyle & enable ernie mkl test
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLPH committed Aug 17, 2021
1 parent acf343f commit 6440f4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions paddle/fluid/inference/tests/infer_ut/test_ernie_text_cls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ T cRandom(int min, int max) {
unsigned int seed = 100;
return (min +
static_cast<T>(max * rand_r(&seed) / static_cast<T>(RAND_MAX + 1)));
}
}

std::map<std::string, paddle::test::Record> PrepareInput(int batch_size) {
// init input data
Expand Down Expand Up @@ -84,9 +84,7 @@ TEST(test_ernie_text_cls, analysis_gpu_bz2_buffer) {
std::cout << "finish test" << std::endl;
}

TEST(DISABLED_test_ernie_text_cls, multi_thread4_mkl_fp32_bz2) {
// TODO(OliverLPH): disabled since it cause bug

TEST(test_ernie_text_cls, multi_thread4_mkl_fp32_bz2) {
int thread_num = 4;
// init input data
auto my_input_data_map = PrepareInput(2);
Expand Down

1 comment on commit 6440f4b

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍PR: #34946 Commit ID: 6440f4b contains failed CI.

Please sign in to comment.