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

support multiple template parameter in KernelType for REGISTER_OP_XPU… #2932

Merged

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Jul 18, 2017

for macro like:

#define REGISTER_OP_CPU_KERNEL(type, KenelType) \
...

if KenelType have more then one template parameter, like

REGISTER_OP_CPU_KERNEL(xx, XxClass<float, float>)

because there is a ,, it will cause error like

error: too many arguments provided to function-like macro invocation

@jacquesqiao jacquesqiao merged commit 051676a into PaddlePaddle:develop Jul 18, 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