-
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
[XPU][PHI Kernels] bind rsqrt、bitwise_or、arange_tensor for xpu #58950
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
{"arange_tensor", | ||
XPUKernelSet({phi::DataType::FLOAT32, | ||
phi::DataType::INT32, | ||
phi::DataType::INT64})}, |
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.
#58381 这个PR把kernel的名字从arange改成了arange_tensor,导致xpu不能从xpu2/3_op_list中找到对应的kernel信息从而触发fallback
|
||
int ret = xpu::range<T>( | ||
dev_ctx.x_context(), out_data, start_value, step_value, size); | ||
PADDLE_ENFORCE_XDNN_SUCCESS(ret, "range"); |
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.
原来的CPU实现替换为xpu::range
DenseTensor* out) { | ||
// Same reason as bitwise_and | ||
LogicalOrKernel<T, Context>(ctx, x, y, out); | ||
} |
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_or之前已有已有单测
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
…ePaddle#58950) * bind kernels * add tests * bugfix
PR types
New features
PR changes
OPs
Description