-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
layer.to api support numpy.dtype and paddle.dtype #38018
layer.to api support numpy.dtype and paddle.dtype #38018
Conversation
Thanks for your contribution! |
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!
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
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
* layer.to api support numpy.dtype and paddle.dtype * skip the layer to eaxmple code executing for env not support
PR types
New features
PR changes
APIs
Describe
Issue37932 反馈 layer.to 不支持
paddle.dtype
类型的问题,新增了对这类型的支持。issue反馈的是release2.2版本情况,但是develop 分支与release2.2 相比,可以支持paddle.float16 这类的类型,却不支持np.float16 这类的类型。
其原因是develop分支合入的PR #36862 #37156 修改了类型转化为paddle.dtype的规则,没对numpy.dtype的类型转换为paddle.dtype类型。在此一并进行了修复。