Skip to content
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

Merged
merged 13 commits into from
Sep 20, 2022
Merged

[PHI] Shape op migration #46051

merged 13 commits into from
Sep 20, 2022

Conversation

paulinagacek
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

migrate OneDNN shape kernel to PHI

@CLAassistant
Copy link

CLAassistant commented Sep 14, 2022

CLA assistant check
All committers have signed the CLA.

@paddle-bot-old paddle-bot-old bot added the contributor External developers label Sep 14, 2022
@paulinagacek paulinagacek changed the title Shape op migration PHI Shape op migration Sep 16, 2022
@paulinagacek paulinagacek changed the title PHI Shape op migration [PHI] Shape op migration Sep 16, 2022
@paulinagacek paulinagacek marked this pull request as ready for review September 16, 2022 11:06
@paulinagacek
Copy link
Contributor Author

@piotrekobi can you review please?

Comment on lines 52 to 53
PD_REGISTER_KERNEL(
shape, OneDNN, ALL_LAYOUT, phi::ShapeKernel, float, phi::dtype::bfloat16) {}
Copy link
Contributor

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) {}

Copy link
Contributor

@piotrekobi piotrekobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@piotrekobi
Copy link
Contributor

@chenwhql Please review

@chenwhql chenwhql closed this Sep 20, 2022
@chenwhql chenwhql reopened this Sep 20, 2022
@paulinagacek
Copy link
Contributor Author

@jczaja I think it's ready to merge

@jczaja
Copy link
Contributor

jczaja commented Sep 20, 2022

@paulinagacek I cannot merge it till you sort out the problem with license/cla check

@jczaja jczaja merged commit 27fe77b into PaddlePaddle:develop Sep 20, 2022
@paddle-bot
Copy link

paddle-bot bot commented Sep 20, 2022

你的PR已合入Paddle库,请关注后续测试结果。
Your PR has been merged into the repository. An official integration test will be conducted later. Stay tuned.

Silv3S pushed a commit to Silv3S/Paddle that referenced this pull request Oct 3, 2022
* First approach

* Shape kernel corrected

* Compilation error fixed

* Resize corrected

* Registered types added

* Mistake corrected & types added

* sum kernel deleted
phlrain pushed a commit that referenced this pull request Oct 10, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers Intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants