From b1d0a14c144c71f0f912d1e8ec0d0b4170546c12 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Mon, 24 Dec 2018 13:06:11 +0800 Subject: [PATCH] Change the ut back test=develop --- paddle/fluid/inference/analysis/analyzer_tester.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/inference/analysis/analyzer_tester.cc b/paddle/fluid/inference/analysis/analyzer_tester.cc index 1fc5a00858c..f84e1ab6b82 100644 --- a/paddle/fluid/inference/analysis/analyzer_tester.cc +++ b/paddle/fluid/inference/analysis/analyzer_tester.cc @@ -78,10 +78,10 @@ void TestWord2vecPrediction(const std::string& model_path) { // The outputs' buffers are in CPU memory. for (size_t i = 0; i < std::min(static_cast(5UL), num_elements); i++) { - LOG(INFO) << "data: " - << static_cast(outputs.front().data.data())[i]; - PADDLE_ENFORCE_EQ(static_cast(outputs.front().data.data())[i], - result[i]); + LOG(INFO) << "data: " << static_cast(outputs.front().data.data())[i] + << " result: " << result[i]; + PADDLE_ENFORCE(static_cast(outputs.front().data.data())[i], + result[i]); } } -- GitLab