diff --git a/fluid/PaddleCV/image_classification/README_ngraph.md b/fluid/PaddleCV/image_classification/README_ngraph.md index 17455bd6390a208f1fddf8e3ea7136222ba51573..bb8190758d876244df931a090134f8410b6d38b3 100644 --- a/fluid/PaddleCV/image_classification/README_ngraph.md +++ b/fluid/PaddleCV/image_classification/README_ngraph.md @@ -16,7 +16,7 @@ Only support Adam optimizer yet. Short description of aforementioned steps: ## 1. Install PaddlePaddle -Follow PaddlePaddle [installation instruction](https://github.com/PaddlePaddle/models/tree/develop/fluid/PaddleCV/image_classification#installation) to install PaddlePaddle. If you build PaddlePaddle yourself, please use the following cmake arguments and ensure to set `-DWITH_NGRAPH=ON`. +Follow PaddlePaddle [installation instruction](https://github.com/PaddlePaddle/models/tree/develop/fluid/PaddleCV/image_classification#installation) to install PaddlePaddle. If you [build from source](https://github.com/PaddlePaddle/FluidDoc/blob/develop/doc/fluid/beginners_guide/install/compile/compile_Ubuntu_en.md), please use the following cmake arguments and ensure to set `-DWITH_NGRAPH=ON`. ``` cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=ON -DWITH_MKLDNN=ON -DWITH_NGRAPH=ON ``` @@ -29,10 +29,9 @@ export FLAGS_use_ngraph=true export OMP_NUM_THREADS= ``` -Optional exports for better performance: +If multiple threads are used, you may export the following for better performance: ``` export KMP_AFFINITY=granularity=fine,compact,1,0 -export KMP_BLOCKTIME=1 ``` ## 3. How the benchmark script might be run. diff --git a/fluid/PaddleCV/image_classification/run.sh b/fluid/PaddleCV/image_classification/run.sh index dc31875346e58a9d770639f45f96a6562d76c6a2..741bc3a688a185425b9e3d843c7cc236c5b71b32 100755 --- a/fluid/PaddleCV/image_classification/run.sh +++ b/fluid/PaddleCV/image_classification/run.sh @@ -201,7 +201,6 @@ python train.py \ # --total_images=1281167 \ # --class_dim=1000 \ # --image_shape=3,224,224 \ -# --lr_strategy=none \ # --lr=0.001 \ # --num_epochs=120 \ # --with_mem_opt=False \