Closed
[Requirement|需求建议]: GatherToGatherV2FusionPass/TensorScatterAddFussionPass算子融合规则开源迁移 #2378
梅国晗954517Add on  Apr 27Closed at  Apr 28
梅国晗954517
梅国晗954517
Apr 27 Create

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

在算子仓开源的大背景之下,暂未开源的各内置融合pass需逐步迁移至对应算子开源仓。原来的融合pass框架存在许多问题:框架没有提供工具接口,找节点、加节点、断边连边都需要手搓实现,用户需要关注改图细节等。导致融合pass代码量大,不易理解,用户学习成本高。
算子开源后,ascendC提供了新的融合pass框架,现在需要将暂未开源的各内置融合pass重构,并开源。

Origin(信息来源)

NA

Benefit / Necessity (价值/作用)

fusionpass开源,可选输入算子fusionpass 上库sample。本次迁移indexByTensor相关融合规则:
GatherToGatherV2FusionPass算子
image.png

TensorScatterAddFussionPass算子
image.png

Design(设计方案)

fusionpass使用新框架重构并开源,使用ES API构建替换节点,属性逐一转换。

likedislike
梅国晗954517梅国晗954517
Apr 27 Modify description of issue
梅国晗954517梅国晗954517
Apr 27 Modify description of issue
oscillatedoscillatedCollaborators
Apr 27 Assign gh_M as responsible person
CANN-robotCANN-robotCollaborators
Apr 28 Close issue
CANN-robotCANN-robotCollaborators
Apr 28 Added label: resolved