-
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 BroadcastTensors OP to phi #40047
Move BroadcastTensors OP to phi #40047
Conversation
✅ This PR's description meets the template requirements! |
Thanks for your contribution! |
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.
相关的op-benchmark是否已经添加?
switch (reshape_size) { | ||
#define LOWER_SWITCH_REDUCE_DIMS \ | ||
default: { \ | ||
PADDLE_THROW(paddle::platform::errors::InvalidArgument( \ |
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.
phi::error
paddle/phi/infermeta/binary.h
Outdated
void BilinearTensorProductInferMeta(const MetaTensor& x, | ||
const MetaTensor& y, | ||
const MetaTensor& weight, | ||
paddle::optional<const MetaTensor&> bias, | ||
MetaTensor* out, | ||
MetaConfig config = MetaConfig()); | ||
|
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.
paddle/phi/infermeta/multiary.cc
Outdated
|
||
if (target_dim_size != 1 && dim_size != 1 && | ||
target_dim_size != dim_size) { | ||
PADDLE_THROW(paddle::platform::errors::InvalidArgument( |
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.
phi::errors
@zyfncg |
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.
LGTM
PR types
Function optimization
PR changes
OPs
Describe