-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[XPU] fix index's datatype, using int64 instead of int, part 1 (a-f) #72431
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -46,5 +46,31 @@ inline void ExtractNCWHD(const phi::DDim &dims, | |||
: 1; | |||
} | |||
} | |||
|
|||
inline void ExtractNCWHD(const phi::DDim &dims, |
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.
增加int64类型函数重载
@@ -61,7 +61,7 @@ void GatherGradKernel(const Context& dev_ctx, | |||
dev_ctx.template Alloc<T>(x_grad); | |||
using XPUType = typename XPUTypeTrait<T>::Type; | |||
|
|||
int r = XPU_SUCCESS; | |||
int r = 0; |
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.
LGTM
LGTM |
PR Category
Custom Device
PR Types
Bug fixes
Description
Use int64 datatype for index instead of int in kernels , part 1 (a-f)