-
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
[PIR] No.43 Migrate paddle.unsqueeze into pir #57617
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -36,10 +36,10 @@ def setUp(self): | |||
self.outputs = {"Out": self.inputs["X"].reshape(self.new_shape)} | |||
|
|||
def test_check_output(self): | |||
self.check_output() | |||
self.check_output(check_new_ir=True) |
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.
参考其他单测文件,在setUp 函数中配置self.python_api = paddle.unsqueeze
|
||
def test_check_grad(self): | ||
self.check_grad(["X"], "Out") | ||
self.check_grad(["X"], "Out", check_new_ir=True) |
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.
可暂时关闭check_grad ,设置check_new_ir=False, 反向调用路径内部在修复
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.
unsqueeze反向调用路径支持prhttps://github.com//pull/57681, 待此pr合入后可打开check_grad相关测试。 单测文件应该修改test_unsqueeze2_op.py
done |
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
* update unsqueeze in new ir * fix bug * Update test_unsqueeze2_op.py * Update test_unsqueeze_op.py * Update test_unsqueeze2_op.py
* update unsqueeze in new ir * fix bug * Update test_unsqueeze2_op.py * Update test_unsqueeze_op.py * Update test_unsqueeze2_op.py
* update unsqueeze in new ir * fix bug * Update test_unsqueeze2_op.py * Update test_unsqueeze_op.py * Update test_unsqueeze2_op.py
PR types
Others
PR changes
APIs
Description
[PIR]Migrate unsqueeze into pir
总计 24 个单测,打开12个单测,12个单测继承自unittest.TestCase没有覆盖到
Pcard-67164