You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paddle/paddle/fluid/inference/api/demo_ci
dzhwinter b4d43030ff
windows inference fix (#13141)
7 years ago
..
.gitignore move contrib/inference to paddle/fluid/inference/api 7 years ago
CMakeLists.txt windows inference fix (#13141) 7 years ago
README.md move contrib/inference to paddle/fluid/inference/api 7 years ago
clean.sh fix manylinux1 Failed to publish artifacts 7 years ago
run.sh "windows testing easier" (#12739) 7 years ago
simple_on_word2vec.cc fea/lightly support lod (#12451) 7 years ago
utils.h rename api.h to paddle_inference_api.h, put demo_ci in fluid_install_dir 7 years ago
vis_demo.cc Modify style (#12465) 7 years ago

README.md

Inference Demos

There are several demos:

  • simple_on_word2vec:
    • Follow the C++ codes is in simple_on_word2vec.cc.
    • It is suitable for word2vec model.
  • vis_demo:
    • Follow the C++ codes is in vis_demo.cc.
    • It is suitable for mobilenet, se_resnext50 and ocr three models.
    • Input data format:
      • Each line contains a single record
      • Each record's format is
      <space splitted floats as data>\t<space splitted ints as shape>
      

To build and execute the demos, simply run

./run.sh $PADDLE_ROOT $TURN_ON_MKL $TEST_GPU_CPU
  • It will build and execute the demos in both static and shared library.
  • $PADDLE_ROOT: paddle library path
  • $TURN_ON_MKL: use MKL or Openblas
  • $TEST_GPU_CPU: test both GPU/CPU mode or only CPU mode
  • NOTE: for simple_on_word2vec, must run ctest -R test_word2vec -R to obtain word2vec model at first.