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

Fix link error #28

Merged
merged 2 commits into from
Nov 15, 2017
Merged

Fix link error #28

merged 2 commits into from
Nov 15, 2017

Conversation

hedaoyuan
Copy link
Collaborator

Fix #27

@@ -76,8 +76,7 @@ int main(int argc, char* argv[]) {

{
Timer time("init paddle");
char* argv[] = {(char*)"--use_gpu=False"};
if (paddle_init(1, (char**)argv) != kPD_NO_ERROR) {
if (paddle_init(0, NULL) != kPD_NO_ERROR) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In mobile inference library, the default value of use_gpu is false.
And some people have some doubts about the way this input parameter, so remove the argv in the demo.

Copy link
Collaborator

@qingqing01 qingqing01 left a comment

Choose a reason for hiding this comment

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

LGTM.

@hedaoyuan hedaoyuan merged commit b0c24a5 into PaddlePaddle:develop Nov 15, 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.

None yet

2 participants