-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[pir] add unittest for pir test of Dropout #58106
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] add unittest for pir test of Dropout #58106
Conversation
test/legacy_test/test_dropout_op.py
Outdated
def check_static_result(self, place): | ||
paddle.enable_static() | ||
with base.program_guard(base.Program(), base.Program()): | ||
program = paddle.static.Program() | ||
with base.program_guard(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.
param_guard 里分别是main_program和startup_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.
done
test/legacy_test/test_dropout_op.py
Outdated
def test_errors(self): | ||
paddle.enable_static() | ||
with program_guard(Program(), Program()): | ||
program1 = paddle.static.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.
program1 = paddle.static.Program() | |
main_prog = paddle.static.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.
done
test/legacy_test/test_dropout_op.py
Outdated
def test_errors(self): | ||
paddle.enable_static() | ||
with program_guard(Program(), Program()): | ||
program1 = paddle.static.Program() | ||
program2 = paddle.static.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.
program2 = paddle.static.Program() | |
startup_prog = paddle.static.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.
确认一下本pr中未修改的base.program_guard是否是pir下的program_guard
* tmp * modify unsqueeze * modify part complex bug * modify * modify cpu * [PIR]Migrate maximum into pir * Polish code * add ir_grad of static_gradient * add test * modify bug * modify * test_with_pir * close one test * add_math_op_patch * modify * modify * add mean fill_constant test * modify cpu int32 test * get_shape_tensor * delete * add default place * add dropout unittest * Update test/legacy_test/test_elementwise_div_op.py * modify review comment * modify add test --------- Co-authored-by: 0x45f <wangzhen45@baidu.com>
* tmp * modify unsqueeze * modify part complex bug * modify * modify cpu * [PIR]Migrate maximum into pir * Polish code * add ir_grad of static_gradient * add test * modify bug * modify * test_with_pir * close one test * add_math_op_patch * modify * modify * add mean fill_constant test * modify cpu int32 test * get_shape_tensor * delete * add default place * add dropout unittest * Update test/legacy_test/test_elementwise_div_op.py * modify review comment * modify add test --------- Co-authored-by: 0x45f <wangzhen45@baidu.com>
* tmp * modify unsqueeze * modify part complex bug * modify * modify cpu * [PIR]Migrate maximum into pir * Polish code * add ir_grad of static_gradient * add test * modify bug * modify * test_with_pir * close one test * add_math_op_patch * modify * modify * add mean fill_constant test * modify cpu int32 test * get_shape_tensor * delete * add default place * add dropout unittest * Update test/legacy_test/test_elementwise_div_op.py * modify review comment * modify add test --------- Co-authored-by: 0x45f <wangzhen45@baidu.com>
PR types
others
PR changes
others
Description
pcard-67164