-
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
Add test_with_pir_api in error test #60693
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
test/legacy_test/test_sum_op.py
Outdated
@@ -531,6 +533,7 @@ def test_out_dtype(): | |||
|
|||
|
|||
class TestSumOpError(unittest.TestCase): | |||
@test_with_pir_api |
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.
这个是动态图的测试case,不需要装饰
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.
好的,已修改
test_sum_op单测在windows上挂了,尝试在test_errors的每个测试函数中用with program_guard(xx)包一下试试呢~ 我感觉是program混用的问题,有一些同名的value |
7616fcb
to
135d211
Compare
好的,已修改,然后添加了一下reshape |
PR types
Others
PR changes
Others
Description
#60488
大部分的 test_error 添加 test_with_pir_api 已经在之前的pr中进行了总结和测试,本 PR 先将可直接添加装饰器不需要额外修改的部分合入。
下列 API 单测 test_errors 适配 PIR: