Skip to content

Commit b5f617f

Browse files
committed
make mobilenet test reuse resnet50 test
1 parent 1987d45 commit b5f617f

File tree

2 files changed

+2
-89
lines changed

2 files changed

+2
-89
lines changed

paddle/fluid/inference/tests/api/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,8 @@ inference_analysis_api_test_with_fake_data(test_analyzer_resnet50
8383
"${INFERENCE_DEMO_INSTALL_DIR}/resnet50" analyzer_resnet50_tester.cc "resnet50_model.tar.gz")
8484

8585
# mobilenet
86-
set(MOBILENET_INSTALL_DIR "${INFERENCE_DEMO_INSTALL_DIR}/mobilenet")
87-
if (NOT EXISTS ${MOBILENET_INSTALL_DIR})
88-
inference_download_and_uncompress(${MOBILENET_INSTALL_DIR} "http://paddle-inference-dist.bj.bcebos.com/tensorrt_test" "mobilenet.tar.gz")
89-
file(RENAME ${MOBILENET_INSTALL_DIR}/mobilenet/__model__ ${MOBILENET_INSTALL_DIR}/mobilenet/model)
90-
endif()
91-
inference_analysis_test(test_analyzer_mobilenet SRCS analyzer_mobilenet_tester.cc
92-
EXTRA_DEPS ${INFERENCE_EXTRA_DEPS} ARGS --infer_model=${MOBILENET_INSTALL_DIR}/mobilenet)
86+
inference_analysis_api_test_with_fake_data(test_analyzer_mobilenet
87+
"${INFERENCE_DEMO_INSTALL_DIR}/mobilenet" analyzer_resnet50_tester.cc "mobilenet_model.tar.gz")
9388

9489
# anakin
9590
if (WITH_ANAKIN AND WITH_MKL) # only needed in CI

paddle/fluid/inference/tests/api/analyzer_mobilenet_tester.cc

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)