File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
paddle/fluid/inference/api/demo_ci Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,6 @@ if(WITH_DOC)
305
305
endif ()
306
306
307
307
if (ON_INFER )
308
- message (WARNING "On inference mode, will take place some specific optimization." )
308
+ message (STATUS "On inference mode, will take place some specific optimization." )
309
309
add_definitions (-DPADDLE_ON_INFERENCE )
310
310
endif ()
Original file line number Diff line number Diff line change 14
14
15
15
# make package for paddle fluid shared and static library
16
16
function (copy TARGET )
17
- if (NOT ON_INFER )
18
- message (WARNING "Turn on the ON_INFER flag when building inference_lib only." )
19
- endif ()
20
17
set (options "" )
21
18
set (oneValueArgs "" )
22
19
set (multiValueArgs SRCS DSTS DEPS )
Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ for WITH_STATIC_LIB in ON OFF; do
60
60
-DWITH_MKL=$TURN_ON_MKL \
61
61
-DDEMO_NAME=simple_on_word2vec \
62
62
-DWITH_GPU=$TEST_GPU_CPU \
63
- -DWITH_STATIC_LIB=$WITH_STATIC_LIB \
64
- -DON_INFER=ON
63
+ -DWITH_STATIC_LIB=$WITH_STATIC_LIB
65
64
make -j
66
65
word2vec_model=${PADDLE_ROOT} ' /build/python/paddle/fluid/tests/book/word2vec.inference.model'
67
66
if [ -d $word2vec_model ]; then
@@ -81,8 +80,7 @@ for WITH_STATIC_LIB in ON OFF; do
81
80
-DWITH_MKL=$TURN_ON_MKL \
82
81
-DDEMO_NAME=vis_demo \
83
82
-DWITH_GPU=$TEST_GPU_CPU \
84
- -DWITH_STATIC_LIB=$WITH_STATIC_LIB \
85
- -DON_INFER=ON
83
+ -DWITH_STATIC_LIB=$WITH_STATIC_LIB
86
84
make -j
87
85
for use_gpu in $use_gpu_list ; do
88
86
for vis_demo_name in $vis_demo_list ; do
@@ -108,8 +106,7 @@ for WITH_STATIC_LIB in ON OFF; do
108
106
-DWITH_STATIC_LIB=$WITH_STATIC_LIB \
109
107
-DUSE_TENSORRT=$USE_TENSORRT \
110
108
-DTENSORRT_INCLUDE_DIR=$TENSORRT_INCLUDE_DIR \
111
- -DTENSORRT_LIB_DIR=$TENSORRT_LIB_DIR \
112
- -DON_INFER=ON
109
+ -DTENSORRT_LIB_DIR=$TENSORRT_LIB_DIR
113
110
make -j
114
111
./trt_mobilenet_demo \
115
112
--modeldir=$DATA_DIR /mobilenet/model \
You can’t perform that action at this time.
0 commit comments