-
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
[2.0API]support set_default_dtype for to_tensor #26432
[2.0API]support set_default_dtype for to_tensor #26432
Conversation
Thanks for your contribution! |
9774f19
to
c8507e3
Compare
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
ce5c1bd
to
d3bea04
Compare
a5e7fb7
to
27934ff
Compare
27934ff
to
154e583
Compare
154e583
to
9827260
Compare
python/paddle/tensor/creation.py
Outdated
'complex64' , 'complex128' only for ComplexTensor. | ||
Default: None, infers data type from ``data`` . | ||
'complex64' , 'complex128' only for ComplexTensor. | ||
Default: None, infers type from ``data`` if not ``set_default_type`` . |
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.
这句话没说清楚啊。
不管有没有调用set_default_type,都是有一个默认数据类型的。
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.
Done
@@ -234,6 +234,7 @@ | |||
"prroi_pool" | |||
], | |||
"wlist_temp":[ | |||
"to_tensor", |
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.
为什么要加到白名单里。
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.
为什么要加到白名单里。
现在示例代码不能跑GPU的,但这个示例代码要有GPU的,所以只能先加白名单,可以看下示例代码,本地跑了没问题
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
will delete from wlist_temp later
PR types
Bug fixes
PR changes
APIs
Describe
support set_default_dtype for to_tensor.
related with #26006