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

[cherry-pick]layer.to api support numpy.dtype and paddle.dtype #38108

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

MingMingShangTian
Copy link
Contributor

@MingMingShangTian MingMingShangTian commented Dec 14, 2021

PR types

Bug fixes

PR changes

APIs

Describe

Issue37932 反馈 layer.to 不支持paddle.dtype类型的问题,新增了对这类型的支持。详情见:#38018
同时,也一并cherry-pick了遗漏的 PR 36779 的commit。

修改内容:
Cherry-pick #36779
cherrry-pick #38018

zh794390558 and others added 2 commits December 14, 2021 04:09
* Layer.to reutrn self

* add device required
* layer.to api support numpy.dtype and paddle.dtype

* skip the layer to eaxmple code executing for env not support
@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

@zhangbo9674 zhangbo9674 left a comment

Choose a reason for hiding this comment

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

LGTM

@lanxianghit lanxianghit merged commit 8100c16 into PaddlePaddle:release/2.2 Dec 15, 2021
@MingMingShangTian MingMingShangTian deleted the release/2.2 branch December 15, 2021 03:49
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.

5 participants