diff --git a/lite/api/mobilenetv1_test.cc b/lite/api/mobilenetv1_test.cc index fff27c8156e3d1c2f421026136b8fdff8265519d..5342a36ec154b2bdde44fa72bc21e9d430ad4efe 100644 --- a/lite/api/mobilenetv1_test.cc +++ b/lite/api/mobilenetv1_test.cc @@ -95,7 +95,7 @@ void TestModel(const std::vector& valid_places, if (first_target == TARGET(kOpenCL) || first_target == TARGET(kNPU)) { ASSERT_EQ(out->dims().production(), 1000); - double eps = 0.1; + double eps = first_target == TARGET(kOpenCL) ? 0.12 : 0.1; for (int i = 0; i < ref.size(); ++i) { for (int j = 0; j < ref[i].size(); ++j) { auto result = pdata[j * step + (out->dims()[1] * i)]; diff --git a/lite/api/mobilenetv2_test.cc b/lite/api/mobilenetv2_test.cc index c2959bf88da209c050f056791e6f15c240ec32c1..465f82056c6bb80b706cfb7d875773d75735911b 100644 --- a/lite/api/mobilenetv2_test.cc +++ b/lite/api/mobilenetv2_test.cc @@ -97,7 +97,7 @@ void TestModel(const std::vector& valid_places, if (first_target == TARGET(kOpenCL) || first_target == TARGET(kNPU)) { ASSERT_EQ(out->dims().production(), 1000); - double eps = 0.1; + double eps = first_target == TARGET(kOpenCL) ? 0.15 : 0.1; for (int i = 0; i < ref.size(); ++i) { for (int j = 0; j < ref[i].size(); ++j) { auto result = pdata[j * step + (out->dims()[1] * i)]; diff --git a/lite/tools/ci_build.sh b/lite/tools/ci_build.sh index 84ae37d4de9fa3e3c67115ec8827424eb56bb0fb..703da69fa59f3aa99bad9fb04c0decb591486058 100755 --- a/lite/tools/ci_build.sh +++ b/lite/tools/ci_build.sh @@ -1140,8 +1140,8 @@ function main { ;; build_test_arm_opencl) build_test_arm_opencl -# build_test_arm_subtask_model test_mobilenetv1 mobilenet_v1 -# build_test_arm_subtask_model test_mobilenetv2 mobilenet_v2_relu + build_test_arm_subtask_model test_mobilenetv1 mobilenet_v1 + build_test_arm_subtask_model test_mobilenetv2 mobilenet_v2_relu shift ;; build_test_arm_subtask_android)