From cdd52f3a30c70f98044ad3dd7a86cd27b5c6071d Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Sat, 5 May 2018 20:58:04 +0800 Subject: [PATCH 1/2] Add comment to explain how to run inference test --- paddle/fluid/inference/tests/book/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/fluid/inference/tests/book/CMakeLists.txt b/paddle/fluid/inference/tests/book/CMakeLists.txt index 97d9f03f88ad3..ec5ca4a70f0db 100644 --- a/paddle/fluid/inference/tests/book/CMakeLists.txt +++ b/paddle/fluid/inference/tests/book/CMakeLists.txt @@ -24,6 +24,10 @@ function(inference_test TARGET_NAME) endforeach() endfunction(inference_test) +#################### +# Inference tests here depend on fluid/tests/book +# User need to run tests in fluid/tests/book first to generate saved model. +#################### # This unittest is buggy! #inference_test(fit_a_line) inference_test(image_classification ARGS vgg resnet) From 9fccf46270cee6a60b0ab0a0939764dcf6f2199f Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Mon, 7 May 2018 13:11:45 +0800 Subject: [PATCH 2/2] reword comments --- paddle/fluid/inference/tests/book/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/inference/tests/book/CMakeLists.txt b/paddle/fluid/inference/tests/book/CMakeLists.txt index ec5ca4a70f0db..cc179a86256e6 100644 --- a/paddle/fluid/inference/tests/book/CMakeLists.txt +++ b/paddle/fluid/inference/tests/book/CMakeLists.txt @@ -25,8 +25,9 @@ function(inference_test TARGET_NAME) endfunction(inference_test) #################### -# Inference tests here depend on fluid/tests/book -# User need to run tests in fluid/tests/book first to generate saved model. +# Inference tests here depend on fluid/tests/book. If users want to run +# individual test with ctest, they need to run tests in fluid/tests/book +# first to generate saved model. #################### # This unittest is buggy! #inference_test(fit_a_line)