-
Notifications
You must be signed in to change notification settings - Fork 6k
Add 3 pass version check #27283
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 3 pass version check #27283
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ | |
| from inference_pass_test import InferencePassTest | ||
| import paddle.fluid as fluid | ||
| import paddle.fluid.core as core | ||
| from paddle.fluid.core import PassVersionChecker | ||
| from paddle.fluid.core import AnalysisConfig | ||
| """Test for fusion of conv, elementwise_add and act.""" | ||
|
|
||
|
|
@@ -48,6 +49,7 @@ def test_check_output(self): | |
| if core.is_compiled_with_cuda(): | ||
| use_gpu = True | ||
| self.check_output_with_option(use_gpu) | ||
| PassVersionChecker.IsCompatible('conv_elementwise_add_act_fuse_pass') | ||
|
||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ | |
| from inference_pass_test import InferencePassTest | ||
| import paddle.fluid as fluid | ||
| import paddle.fluid.core as core | ||
| from paddle.fluid.core import PassVersionChecker | ||
| from paddle.fluid.core import AnalysisConfig | ||
| """Test for fusion of conv and elementwise_add.""" | ||
|
|
||
|
|
@@ -44,6 +45,7 @@ def test_check_output(self): | |
| if core.is_compiled_with_cuda(): | ||
| use_gpu = True | ||
| self.check_output_with_option(use_gpu) | ||
| PassVersionChecker.IsCompatible('conv_elementwise_add_fuse_pass') | ||
|
||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
|
|
||
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.
需要添加返回值断言
self.assertTrue(...)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, thanks