Skip to content
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

[IR] Support inplace execute logic for NewIrInterpreter #55210

Merged
merged 6 commits into from Jul 10, 2023

Conversation

zhangbo9674
Copy link
Contributor

@zhangbo9674 zhangbo9674 commented Jul 6, 2023

PR types

New features

PR changes

Others

Description

新 IR 执行器执行层面添加 inplace 执行逻辑(本 PR 暂不包括上层 inplace 依赖分析层面的处理):

  • 算子标记:PaddleDialect 添加 InplaceTrait,对 inplace 类 op 注册该 Trait
  • 执行层面的接入:
    • pd_op_to_kernel_pass lower 过程中,解析 InplaceTrait,向 phi kernel dialect 层透传 inplace 信息;
    • 执行器 BuildScope 过程中,根据 inplace 信息,互为 inplace 的 Value 对应同一个 Variable。

Other

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Jul 6, 2023

你的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.

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangbo9674 zhangbo9674 merged commit e8cba1c into PaddlePaddle:develop Jul 10, 2023
26 of 27 checks passed
cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request Jul 24, 2023
…#55210)

* add inplace interface

* support inplace

* refine code

* fix bug

* fix bug

* refien code
wz1qqx pushed a commit to wz1qqx/Paddle that referenced this pull request Jul 31, 2023
…#55210)

* add inplace interface

* support inplace

* refine code

* fix bug

* fix bug

* refien code
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.

None yet

3 participants