-
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
[Dy2St] pir dy2st unittest verification - Part 12 #59378
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
…_push_12 # Conflicts: # test/dygraph_to_static/test_convert_operators.py # test/dygraph_to_static/test_declarative.py # test/dygraph_to_static/test_fallback.py # test/dygraph_to_static/test_place.py # test/dygraph_to_static/test_yolov3.py
test/dygraph_to_static/test_place.py
Outdated
@@ -34,7 +34,7 @@ def test_place(self): | |||
self.assertTrue(len(w) == 1) | |||
if paddle.framework.use_pir_api(): | |||
self.assertTrue( | |||
"OpResult do not have 'place'" in str(w[-1].message) |
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.
改成 assertIn 吧
54c07ff
to
33498cd
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
PR types
Others
PR changes
Others
Description
test_yolov3
API(疑似)首次 Upsample 里 interpolate shape 为#59550 已修[0]
,但单独无法复现,可能是前面的问题,已反馈震哥test_yolov3
test_place
test_declarative
:test_with_input_spec
jit.api.save
方法改好了test_declarative
:TestInputSpec.test_concrete_program
OpResult.shape
的返回是list,而legacy ir
下的是tuple
, 解决完后还有name
属性调用的问题ValueError: (InvalidArgument) Currently, we can only get name of OpResult that is persistable
test_declarative
:TestInputDefaultName
attr
没有被设置上AssertionError: Lists differ: [] != ['x']
test_declarative
:TestDeclarativeAPI
AssertionError: We only support 'to_variable()' in dynamic graph mode, please call 'paddle.disable_static()' to enter dynamic graph mode.
test_declarative
:TestDecorateModelDirectly
attr
是一样的问题self.assertTrue(len(net.forward.inputs) == 1) AssertionError: False is not true
test_declarative
:test_set_buffers1
name
属性调用的问题,jit.api.save
问题,还有setitem
问题test_declarative
:test_set_buffers2
setitem
暂不支持RuntimeError: In Dy2stat, self.b is a buffer and self.b is not allowed to be set to Variable when self.b is None.
test_fallback
: {test_case_func_fallback
,test_case_net_fallback
,test_case_net_error
,test_case_training
,test_case_save_error_2
}NotImplementedError: (Unimplemented) Currently we only support CINN Pass for Pir under @to_static, please compile PaddlePaddle with CINN
test_fallback
:test_case_flag
test_convert_operators
:test_variable
__eq__
ValueError: (InvalidArgument) all(): argument (position 1) must be OpResult, but got bool
test_tensor_memcpy_on_cpu
test_tensor_memcpy_on_cpu
set_parameter
会导致插入 D2H copy 回 CPUtest_tensor_memcpy_on_gpu
相关链接: