From 44ea2343430a71d83b2fa37f6daa5e807031f699 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Thu, 31 May 2018 15:50:08 +0800 Subject: [PATCH] clean --- paddle/contrib/inference/test_paddle_inference_api_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/contrib/inference/test_paddle_inference_api_impl.cc b/paddle/contrib/inference/test_paddle_inference_api_impl.cc index e980e8c3b70..caba7931cb1 100644 --- a/paddle/contrib/inference/test_paddle_inference_api_impl.cc +++ b/paddle/contrib/inference/test_paddle_inference_api_impl.cc @@ -144,7 +144,7 @@ TEST(paddle_inference_api_impl, image_classification) { float* data = static_cast(outputs[0].data.data); float* lod_data = output1.data(); for (size_t j = 0; j < len / sizeof(float); ++j) { - EXPECT_NEAR(lod_data[j], data[j], 1e-6); + EXPECT_NEAR(lod_data[j], data[j], 1e-3); } free(data); } -- GitLab