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 many data types of several operators #5731

Merged
merged 4 commits into from
Nov 21, 2017

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Nov 17, 2017

No description provided.

@@ -22,6 +22,9 @@ namespace math {

template class ContextProjectFunctor<platform::GPUPlace, float>;
template class ContextProjectFunctor<platform::GPUPlace, double>;
template class ContextProjectFunctor<platform::GPUPlace, int>;
template class ContextProjectFunctor<platform::GPUPlace, int64_t>;
template class ContextProjectFunctor<platform::GPUPlace, bool>;
Copy link
Contributor

Choose a reason for hiding this comment

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

ContextProjectFunctor is not exposed to user, it is used in sequence_conv_op. It seems there is no need to define int, int64_t, bool type for this functor.

Add, sequence_conv_op needs to register double type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. make sequence_conv_op supports multiple precision.

Copy link
Contributor

@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.

@reyoung reyoung merged commit a5e73f9 into PaddlePaddle:develop Nov 21, 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