-
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
[Cleanup][A-7] Replace VarType
#61548
Conversation
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.
收到
@@ -229,9 +229,9 @@ def test_out_dtype(): | |||
shape=[3, 4], dtype='float64' | |||
) | |||
if paddle.framework.in_pir_mode(): | |||
self.assertEqual(out.dtype, base.core.DataType.FLOAT64) | |||
self.assertEqual(out.dtype, paddle.float64) |
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.
datatype 不能改
@@ -593,9 +593,9 @@ def test_out_dtype(): | |||
shape=[3, 4], dtype='float64' | |||
) | |||
if paddle.framework.in_pir_mode(): | |||
self.assertEqual(out.dtype, base.core.DataType.FLOAT64) | |||
self.assertEqual(out.dtype, paddle.float64) |
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.
同上,datatype 不能改
test/legacy_test/test_var_base.py
Outdated
@@ -511,7 +511,7 @@ def test_deep_copy(self): | |||
|
|||
# test copy selected rows | |||
x = core.eager.Tensor( | |||
core.VarDesc.VarType.FP32, | |||
paddle.float32, |
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.
PR types
Others
PR changes
Others
Description
A7