From 484085693e1c6ea88958d453d5c7473e89daee60 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Fri, 28 Dec 2018 08:32:53 +0000 Subject: [PATCH] update url and num_ops test=develop --- paddle/fluid/inference/tests/api/CMakeLists.txt | 2 +- paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/inference/tests/api/CMakeLists.txt b/paddle/fluid/inference/tests/api/CMakeLists.txt index e8da6255b32..5038629aa47 100644 --- a/paddle/fluid/inference/tests/api/CMakeLists.txt +++ b/paddle/fluid/inference/tests/api/CMakeLists.txt @@ -92,7 +92,7 @@ inference_analysis_api_test(test_analyzer_seq_conv1 ${SEQ_CONV1_INSTALL_DIR} ana # seq_pool1 set(SEQ_POOL1_INSTALL_DIR "${INFERENCE_DEMO_INSTALL_DIR}/seq_pool1") -download_model_and_data(${SEQ_POOL1_INSTALL_DIR} "seq_pool1_model.tar.gz" "seq_pool1_data.txt.tar.gz") +download_model_and_data(${SEQ_POOL1_INSTALL_DIR} "seq_pool1_model_.tar.gz" "seq_pool1_data.txt.tar.gz") inference_analysis_api_test(test_analyzer_seq_pool1 ${SEQ_POOL1_INSTALL_DIR} analyzer_seq_pool1_tester.cc) # ocr diff --git a/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc b/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc index 30ebfbebf38..1c251e0c22f 100644 --- a/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc +++ b/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc @@ -181,7 +181,7 @@ TEST(Analyzer_seq_pool1, fuse_statis) { auto fuse_statis = GetFuseStatis( static_cast(predictor.get()), &num_ops); LOG(INFO) << "num_ops: " << num_ops; - EXPECT_EQ(num_ops, 314); + EXPECT_EQ(num_ops, 349); } } // namespace analysis -- GitLab