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

【Phi】Migrate bitwise_and/bitwise_or/bitwise_xor/bitwise_not op into phi #40031

Merged
merged 3 commits into from
Mar 4, 2022

Conversation

zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Mar 1, 2022

PR types

Breaking changes

PR changes

OPs

Describe

Migrate bitwise_and/or/xor/not op into phi.

@zhwesky2010 zhwesky2010 changed the title Migrate bitwise_and/or/xor/not op into phi 【Phi】Migrate bitwise_and/bitwise_or/bitwise_xor/bitwise_not op into phi Mar 1, 2022
@paddle-bot-old
Copy link

paddle-bot-old bot commented Mar 1, 2022

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

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Mar 2, 2022
@PaddlePaddle PaddlePaddle unlocked this conversation Mar 2, 2022
zyfncg
zyfncg previously approved these changes Mar 3, 2022

#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/bitwise_kernel.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

bitwise_kernel.h推荐放在开头

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

const DenseTensor& y, \
DenseTensor* out) { \
funcs::Bitwise##op_type##Functor<T> func; \
ElementwiseCompute<funcs::Bitwise##op_type##Functor<T>, T, T>( \
Copy link
Contributor

Choose a reason for hiding this comment

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

ci是最新代码跑的结果吗,昨天我把这个函数挪到了funcs下了,按理说编译应该通不过

Copy link
Contributor Author

Choose a reason for hiding this comment

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

昨天的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

冲突已经处理了

Comment on lines 21 to 22
#include "paddle/phi/kernels/funcs/elementwise_base.h"
#include "paddle/phi/kernels/gpu/elementwise.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

应用一个头文件即可:funcs下的broadcast_function.h

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

@zhwesky2010 zhwesky2010 merged commit 03eb792 into PaddlePaddle:develop Mar 4, 2022
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.

4 participants