Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 中存放组合调用的相关类和方法,属于流程类方法