You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: benchmark/tool/C/README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
# Inference demo
2
2
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.
5
6
6
7
## 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:
8
9
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
12
13
```
13
14
mkdir build
14
15
cd build
@@ -21,7 +22,7 @@ To compile and run this demo in the Android environment, follow these steps:
21
22
22
23
make
23
24
```
24
-
- arm64-v8a
25
+
- For arm64-v8a
25
26
```
26
27
mkdir build
27
28
cd build
@@ -34,7 +35,7 @@ To compile and run this demo in the Android environment, follow these steps:
34
35
35
36
make
36
37
```
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:
0 commit comments