Skip to content

【prim】standard decomp api #69144

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

Merged
merged 9 commits into from
Nov 7, 2024

Conversation

xiaoguoguo626807
Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented Nov 4, 2024

PR Category

Execute Infrastructure

PR Types

Improvements

Description

pcard-67164

整理组合算子接口
前向拆解相关的以decomp_rule 命名; 反向拆解相关的以decomp_vjp 命名

整理组合算子目录:
primitive 是pir 组合机制根目录
primitive -- decomp_utils 存放组合拆解需要的非op 类接口
-- primitive 中存放组合拆解需要的基础算子接口, 调用backend 中的接口. 生成依赖于primitive.yaml 配置
-- decomp_rule 中分decomp_rule(存放前向拆解规则composite.h) decomp_vjp (存放反向拆解规则)
-- vjp_interface中分manual, generated 目录,存放xxx_vjp 的调用接口和实现,作为组合和非组合分发的接口
-- backend 中分manual,generated 目录,存放组合拆解基础算子需要的op 类接口, 同时也是xxx_vjp 调用的非组合接口。
-- base 中存放组合调用的相关类和方法,属于流程类方法

Copy link

paddle-bot bot commented Nov 4, 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.

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaoguoguo626807 xiaoguoguo626807 merged commit d5a5a74 into PaddlePaddle:develop Nov 7, 2024
28 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the modify branch November 7, 2024 01:44
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.

3 participants