Skip to content

Reduce elementwise warning #4418

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

Merged
merged 3 commits into from
Sep 27, 2017

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Sep 27, 2017

fix: #4414 and #4362

Reason

This is because the InferShape of elementwise_op is written in header file and will be processed by nvcc when GPU is enabled, nvcc will throw this warning.

How to fix

move the subclass of OpWithKernel into an independent header file, and only .cc should include this file. The functors are moved to elementwise_op_function.h

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 93db58b into PaddlePaddle:develop Sep 27, 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.

Elementwise_op warning log
2 participants