-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR] support normal and fix TestNoBackwardAPIStatic.test_normal UT
#62864
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提交成功,感谢你对开源项目的贡献! |
| "If std is Tensor, it's data type only support float32, float64.", | ||
| ) | ||
| if shape is not None: | ||
| check_shape(shape, 'normal') |
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.
744 行改回 if not in_dynamic_mode(): 可以么?这样 PIR 下少了很多检查,当然 Variable 相关位置需要加一下 Value
| self.std, np.ndarray | ||
| ): | ||
| with paddle.static.program_guard(paddle.static.Program()): | ||
| with paddle.static.program_guard(main_program): |
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.
这里为啥改成同一个 Program 了啊
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.
喔,不过人家原来也没错啊,为啥要改
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.
喔
|
|
||
|
|
||
| class TestNormalErrors(unittest.TestCase): | ||
| def test_errors(self): |
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.
补上了
TestNoBackwardAPIStatic.test_normal UTTestNoBackwardAPIStatic.test_normal UT
|
Coverage 已过,可以 rename 回原来的名字了~ |
SigureMo
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.
PR types
Bug fixes
PR changes
Others
Description
适配
paddle.normalAPI, 并打开TestNoBackwardAPIStatic.test_normal单测相关链接:
test_zero_dim_*.py- step: 2 #62652