Skip to content

Conversation

@wanghuancoder
Copy link
Contributor

@wanghuancoder wanghuancoder commented Jan 19, 2024

PR types

New features

PR changes

Others

Description

Pcard-67164
PIR-OneDNN添加全量conv2d,conv2d_grad的单测。支持fused_conv2d。
并解决一些遇到的机制上的问题。

@paddle-bot
Copy link

paddle-bot bot commented Jan 19, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot
Copy link

paddle-bot bot commented Jan 19, 2024

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@wanghuancoder wanghuancoder changed the title pir onednn add conv2d test, and support fused_conv2d [PIR] pir onednn add conv2d test, and support fused_conv2d Jan 22, 2024
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];
Copy link
Contributor

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 么?后续就算子退场,这里是不是还要重新适配?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OneDNN底层的Kernel通过Ctx使用的Attr情况如下:

  1. 他既使用extra的Attr,也通过ctx使用PHI kernel签名的Attr。
  2. 他既支持Operators渠道的调用,又支持PHI渠道的调用。因此底层取Attr时,使用的是Operators里Attr的命名规范(首字母大写)。因此我需要把legacy_attr_name给到Ctx。

Copy link
Contributor

@heavyrain-lzy heavyrain-lzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for YAML

Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
单测超时时间增加

@wanghuancoder wanghuancoder merged commit 166aced into PaddlePaddle:develop Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants