File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
paddle/contrib/inference/demo_ci Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,18 @@ for WITH_STATIC_LIB in ON OFF; do
44
44
-DWITH_GPU=$TEST_GPU_CPU \
45
45
-DWITH_STATIC_LIB=$WITH_STATIC_LIB
46
46
make -j
47
- for use_gpu in $use_gpu_list ; do
48
- ./simple_on_word2vec \
49
- --dirname=${PADDLE_ROOT} /build/python/paddle/fluid/tests/book/word2vec.inference.model \
50
- --use_gpu=$use_gpu
51
- if [ $? -ne 0 ]; then
52
- echo " simple_on_word2vec demo runs fail."
53
- exit 1
54
- fi
55
- done
47
+ word2vec_model=${PADDLE_ROOT} ' /build/python/paddle/fluid/tests/book/word2vec.inference.model'
48
+ if [ -d $word2vec_model ]; then
49
+ for use_gpu in $use_gpu_list ; do
50
+ ./simple_on_word2vec \
51
+ --dirname=$word2vec_model \
52
+ --use_gpu=$use_gpu
53
+ if [ $? -ne 0 ]; then
54
+ echo " simple_on_word2vec demo runs fail."
55
+ exit 1
56
+ fi
57
+ done
58
+ fi
56
59
# ---------vis_demo---------
57
60
rm -rf *
58
61
cmake .. -DPADDLE_LIB=${PADDLE_ROOT} /build/fluid_install_dir/ \
You can’t perform that action at this time.
0 commit comments