Skip to content

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 dismissed stale reviews from MingMingShangTian and zyfncg via 242687a March 3, 2022 13:08
@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

4 participants