-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
【Phi】Migrate bitwise_and/bitwise_or/bitwise_xor/bitwise_not op into phi #40031
Conversation
Thanks for your contribution! |
|
||
#include "paddle/phi/backends/gpu/gpu_context.h" | ||
#include "paddle/phi/core/kernel_registry.h" | ||
#include "paddle/phi/kernels/bitwise_kernel.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.
bitwise_kernel.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.
Done
const DenseTensor& y, \ | ||
DenseTensor* out) { \ | ||
funcs::Bitwise##op_type##Functor<T> func; \ | ||
ElementwiseCompute<funcs::Bitwise##op_type##Functor<T>, T, T>( \ |
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.
ci是最新代码跑的结果吗,昨天我把这个函数挪到了funcs下了,按理说编译应该通不过
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.
昨天的
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.
冲突已经处理了
#include "paddle/phi/kernels/funcs/elementwise_base.h" | ||
#include "paddle/phi/kernels/gpu/elementwise.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.
应用一个头文件即可:funcs下的broadcast_function.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.
Done
242687a
PR types
Breaking changes
PR changes
OPs
Describe
Migrate bitwise_and/or/xor/not op into phi.