Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support_gpu #3304

Merged
merged 3 commits into from
Aug 7, 2017
Merged

Conversation

jacquesqiao
Copy link
Member

No description provided.

Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -200,6 +200,10 @@ All parameter, weight, gradient are variables in Paddle.
return OpRegistry::CreateOp(desc);
});

operator_base.def_static("support_gpu", [](const std::string &type) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

operator_base.def_static("support_gpu", &OpRegistry::SupportGPU); should work.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@jacquesqiao jacquesqiao merged commit 493396d into PaddlePaddle:develop Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants