-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add 3 pass version check #27283
Conversation
Thanks for your contribution! |
test=develop
b43e3ce
to
cffe340
Compare
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.
在确认op属性都支持的情况下,请在单测中添加版本检测用例,可参考卫波已合入PR
test=develop
@@ -46,6 +47,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_add2_act_fuse_pass') |
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
@@ -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') |
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.
Done, thanks
@@ -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') |
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.
Done, thanks
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
@Superjomn 辛苦review下 |
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
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
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
New features
PR changes
OPs
Describe
Add three passes' version check