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

【PTen】Add empty and empty_like kernel in pten #38334

Merged
merged 5 commits into from
Dec 23, 2021

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Dec 21, 2021

PR types

Others

PR changes

Others

Describe

Add empty and empty_like kernel in pten

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

是否需要添加一下中间层API


namespace pten {

template <typename T, typename ContextT>
Copy link
Contributor

Choose a reason for hiding this comment

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

empty是不是个设备无关的kernel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

按理说是的,不过目前框架只提供了cpu和gpu的kernel,这里先按照设备无关来写

@zyfncg zyfncg merged commit 4221cd3 into PaddlePaddle:develop Dec 23, 2021
@zyfncg zyfncg deleted the empty_kernel branch December 23, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants