-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR] pir onednn add conv2d test, and support fused_conv2d #60974
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] pir onednn add conv2d test, and support fused_conv2d #60974
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
|
❌ The PR is not created using PR's template. You can refer to this Demo. |
| auto legacy_attr_name = | ||
| op_normalizer.GetLegacyAttrName(fluid_op_name, attr_name); | ||
| if (legacy_attr_name != attr_name) { | ||
| extra_attr_[legacy_attr_name] = extra_attr_[attr_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.
extra_attr_ 和 ctx_attr_ 必须要使用 legacy_attr_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.
OneDNN底层的Kernel通过Ctx使用的Attr情况如下:
- 他既使用extra的Attr,也通过ctx使用PHI kernel签名的Attr。
- 他既支持Operators渠道的调用,又支持PHI渠道的调用。因此底层取Attr时,使用的是Operators里Attr的命名规范(首字母大写)。因此我需要把legacy_attr_name给到Ctx。
heavyrain-lzy
left a comment
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 for YAML
XieYunshen
left a comment
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 types
New features
PR changes
Others
Description
Pcard-67164
PIR-OneDNN添加全量conv2d,conv2d_grad的单测。支持fused_conv2d。
并解决一些遇到的机制上的问题。