-
Notifications
You must be signed in to change notification settings - Fork 5.8k
leaky_relu test #35318
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
leaky_relu test #35318
Conversation
Thanks for your contribution! |
attrs = [ | ||
program_config.ops[i].attrs | ||
for i in range(len(program_config.ops)) | ||
] |
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.
如果没有限制的话,直接返回True就可以了
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.
好的已修改
def generate_weight1(attrs: List[Dict[str, Any]]): | ||
return np.random.random([24, 3, 3, 3]).astype(np.float32) | ||
|
||
for use_mkldnn in [False, True]: |
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.
use_mkldnn和enable_int8 应该是没有参与计算的属性吧? @cryoco 可以帮忙确认下
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.
好的已修改
83966f7
to
d7b14e4
Compare
bce464e
to
efeec79
Compare
eb85717
to
4cbd098
Compare
* add test * add test * add test * add test * add test
PR types
Bug fixes
PR changes
OPs
Describe
add leaky_relu test