-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] Shape op migration #46051
[PHI] Shape op migration #46051
Conversation
@piotrekobi can you review please? |
PD_REGISTER_KERNEL( | ||
shape, OneDNN, ALL_LAYOUT, phi::ShapeKernel, float, phi::dtype::bfloat16) {} |
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.
The original kernel is also registered for the int8 and uint8 types. Please add them as follows:
PD_REGISTER_KERNEL(
shape, OneDNN, ALL_LAYOUT, phi::ShapeKernel, float, phi::dtype::bfloat16, int8_t, uint8_t) {}
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
@chenwhql Please review |
@jczaja I think it's ready to merge |
@paulinagacek I cannot merge it till you sort out the problem with license/cla check |
你的PR已合入Paddle库,请关注后续测试结果。 |
* First approach * Shape kernel corrected * Compilation error fixed * Resize corrected * Registered types added * Mistake corrected & types added * sum kernel deleted
* First approach * Shape kernel corrected * Compilation error fixed * Resize corrected * Registered types added * Mistake corrected & types added * sum kernel deleted Co-authored-by: Paulina Gacek <[email protected]>
PR types
Others
PR changes
Others
Describe
migrate OneDNN shape kernel to PHI