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

Move Abs OP to pten #39492

Merged
merged 4 commits into from
Feb 15, 2022
Merged

Move Abs OP to pten #39492

merged 4 commits into from
Feb 15, 2022

Conversation

From00
Copy link
Contributor

@From00 From00 commented Feb 12, 2022

PR types

Function optimization

PR changes

OPs

Describe

Move Abs OP to pten.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.


#include <algorithm>
#include <vector>
#include "paddle/fluid/operators/elementwise/elementwise_op_impl.cu.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

elementwise的基础组件大部分已移到pten下,可以看一下这个头文件里具体调用了哪个函数,使用pten下的进行替换改造

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

std::vector<DenseTensor*> outs = {out};
auto functor = CudaAbsFunctor<T>();

paddle::operators::LaunchSameDimsElementwiseCudaKernel<
Copy link
Contributor

Choose a reason for hiding this comment

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

需要替换为pten下的函数

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

@From00 From00 merged commit fb47306 into PaddlePaddle:develop Feb 15, 2022
@From00 From00 deleted the move-abs-op-to-pten branch February 15, 2022 03:13
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