Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit 07e6850

Browse files
authored
Merge pull request #16 from kavyasrinet/edit_content
Updating the writeup of the demo
2 parents ed2e557 + 96a922d commit 07e6850

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

benchmark/tool/C/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Inference demo
22

3-
This is an inference demo program based on the Paddle C API. But this demo is based on the c++ code, so need to use g++ or clang++ to compile.
4-
The demo can be run from the command line and used to test the inference performance of various models.
3+
This is an inference demo program based on the C API of PaddlePaddle.
4+
The demo explained here is based on the C++ code, so we need to use g++ or clang++ to compile.
5+
The demo can be run from the command line and can be used to test the inference performance of various different models.
56

67
## Android
7-
To compile and run this demo in the Android environment, follow these steps:
8+
To compile and run this demo in an Android environment, please follow the following steps:
89

9-
1. Refer to [this document](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/howto/cross_compiling/cross_compiling_for_android_cn.md) to compile the paddle of android version. After executing make install will generate an output directory containing three subdirectories of include, lib, and third_party.
10-
2. Compile this inference.cc to an executable program for the Android environment as follow.
11-
- armeabi-v7a
10+
1. Refer to [this document](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/howto/cross_compiling/cross_compiling_for_android_cn.md) to compile the Android version of PaddlePaddle. After following the mentioned steps, make install will generate an output directory containing three subdirectories: include, lib, and third_party.
11+
2. Compile `inference.cc` to an executable program for the Android environment as follows:
12+
- For armeabi-v7a
1213
```
1314
mkdir build
1415
cd build
@@ -21,7 +22,7 @@ To compile and run this demo in the Android environment, follow these steps:
2122
2223
make
2324
```
24-
- arm64-v8a
25+
- For arm64-v8a
2526
```
2627
mkdir build
2728
cd build
@@ -34,7 +35,7 @@ To compile and run this demo in the Android environment, follow these steps:
3435
3536
make
3637
```
37-
3. Run the demo program by logging into the Android environment via adb and specifying the paddle model from the command line.
38+
3. Run the demo program by logging into the Android environment via adb and specifying the PaddlePaddle model from the command line as follows:
3839
```
3940
./inference --merged_model ./model/mobilenet.paddle --input_size 150528
4041
```

0 commit comments

Comments
 (0)