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 Reduce functions and simplify register code #4632

Merged
merged 2 commits into from
Oct 9, 2017
Merged

Unify Reduce functions and simplify register code #4632

merged 2 commits into from
Oct 9, 2017

Conversation

luotao1
Copy link
Contributor

@luotao1 luotao1 commented Oct 9, 2017

like #4485, Unify Reduce functions and simplify register code

ops::ReduceKernel<paddle::platform::CPUPlace, float, ops::MaxFunctor>);
REGISTER_OP_CPU_KERNEL(reduce_max_grad,
ops::ReduceGradKernel<paddle::platform::CPUPlace, float,
ops::MaxOrMinGradFunctor>);

REGISTER_OP(reduce_min, ops::ReduceOp, ops::ReduceMaxOpMaker, reduce_min_grad,
Copy link
Contributor

Choose a reason for hiding this comment

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

这里有个之前遗漏的问题ops::ReduceMaxOpMaker应该是ops::ReduceMinOpMaker,也请麻烦一并修复下吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks~

@luotao1 luotao1 merged commit d9585f9 into PaddlePaddle:develop Oct 9, 2017
@luotao1 luotao1 deleted the reduce branch October 9, 2017 12:48
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