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

Unify Activation functions and simplify register code #4485

Merged
merged 2 commits into from
Sep 29, 2017

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Sep 28, 2017

No description provided.

@reyoung reyoung requested a review from QiJune September 28, 2017 23:27
@reyoung reyoung force-pushed the feature/BetterActivationKern branch from f794396 to 337b7eb Compare September 28, 2017 23:56
struct BaseActivationFunctor {
using ELEMENT_TYPE = T;

using AttrPair = std::vector<std::pair<const char*, float*>>;
Copy link
Member

Choose a reason for hiding this comment

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

Why here attr is always float? Attr has its own data type, and will be static_cast to activation functor data type

@reyoung reyoung force-pushed the feature/BetterActivationKern branch from eec6ed5 to a8c6ce9 Compare September 29, 2017 03:16
Copy link
Member

@QiJune QiJune 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 ae4b7fd into PaddlePaddle:develop Sep 29, 2017
@reyoung reyoung deleted the feature/BetterActivationKern branch October 2, 2017 18:17
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.

2 participants