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

Updating the writeup of the demo #16

Merged
merged 2 commits into from
Oct 23, 2017

Conversation

kavyasrinet
Copy link

No description provided.

Copy link
Collaborator

@wangkuiyi wangkuiyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kavyasrinet for the PR!

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.
2. Compile this inference.cc to an executable program for the Android environment as follow.
- armeabi-v7a
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 pf paddle. After following the mentioned steps, make install will generate an output directory containing three subdirectories: include, lib, and third_party.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paddle => PaddlePaddle

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.
The demo can be run from the command line and used to test the inference performance of various models.
This is an inference demo program based on the Paddle C API.
The demo explained here is based on the c++ code, so we need to use g++ or clang++ to compile.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c++ => C++

2. Compile this inference.cc to an executable program for the Android environment as follow.
- armeabi-v7a
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 pf paddle. After following the mentioned steps, make install will generate an output directory containing three subdirectories: include, lib, and third_party.
2. Compile inference.cc to an executable program for the Android environment as follows:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inference.cc => inference.cc

@@ -34,7 +35,7 @@ To compile and run this demo in the Android environment, follow these steps:

make
```
3. Run the demo program by logging into the Android environment via adb and specifying the paddle model from the command line.
3. Run the demo program by logging into the Android environment via adb and specifying the paddle model from the command line as follows:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paddle => PaddlePaddle

@wangkuiyi wangkuiyi merged commit 07e6850 into PaddlePaddle:develop Oct 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants