-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Dy2St] pir dy2st unittest verification - Part 12 #59378
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
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
| 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
zhangbo9674
left a comment
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_yolov3API(疑似)首次 Upsample 里 interpolate shape 为#59550 已修[0],但单独无法复现,可能是前面的问题,已反馈震哥test_yolov3test_placetest_declarative:test_with_input_specjit.api.save方法改好了test_declarative:TestInputSpec.test_concrete_programOpResult.shape的返回是list,而legacy ir下的是tuple, 解决完后还有name属性调用的问题ValueError: (InvalidArgument) Currently, we can only get name of OpResult that is persistabletest_declarative:TestInputDefaultNameattr没有被设置上AssertionError: Lists differ: [] != ['x']test_declarative:TestDeclarativeAPIAssertionError: We only support 'to_variable()' in dynamic graph mode, please call 'paddle.disable_static()' to enter dynamic graph mode.test_declarative:TestDecorateModelDirectlyattr是一样的问题self.assertTrue(len(net.forward.inputs) == 1) AssertionError: False is not truetest_declarative:test_set_buffers1name属性调用的问题,jit.api.save问题,还有setitem问题test_declarative:test_set_buffers2setitem暂不支持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 CINNtest_fallback:test_case_flagtest_convert_operators:test_variable__eq__ValueError: (InvalidArgument) all(): argument (position 1) must be OpResult, but got booltest_tensor_memcpy_on_cputest_tensor_memcpy_on_cpuset_parameter会导致插入 D2H copy 回 CPUtest_tensor_memcpy_on_gpu相关链接: