-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Move Abs OP to pten #39492
Conversation
Thanks for your contribution! |
|
||
#include <algorithm> | ||
#include <vector> | ||
#include "paddle/fluid/operators/elementwise/elementwise_op_impl.cu.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elementwise的基础组件大部分已移到pten下,可以看一下这个头文件里具体调用了哪个函数,使用pten下的进行替换改造
There was a problem hiding this comment.
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< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要替换为pten下的函数
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
PR types
Function optimization
PR changes
OPs
Describe
Move Abs OP to pten.