-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
【Fix PIR Unittest BUAA No. 76】Fix test_transfer_layout_op #66391
【Fix PIR Unittest BUAA No. 76】Fix test_transfer_layout_op #66391
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
main_program = Program() | ||
startup_program = 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.
这里最好用paddle.base.Program()
ret = exe.run( | ||
main_program, | ||
feed={'x': np.full((n, c, h, w), 1, np.float32)}, | ||
fetch_list=[z.name], |
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.
这里改成fetch_list=[z],
with program_guard(main_program, startup_program): | ||
x = paddle.static.data( | ||
shape=[n, c, h, w], dtype='float32', name='x' | ||
with paddle.pir_utils.OldIrGuard(): |
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.
这个没看出来不要OldIrGuard
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 Category
Others
PR Types
Others
Description
按照#58258更改program后遇到append_op过程报错,结合#66226,使用OldIrGuard包裹相关测试