已合并
feat: restore reshape axes before autofuse can-fuse #4170
feat: restore reshape axes before autofuse can-fuse #4170
已合并
ling-DT创建于 7月28日
ling-DT成员
7月28日

Pull Request

描述

修复 AutoFuse reshape 补轴时机与轴语义恢复问题:

  • 在 can-fuse 前根据 reshape axis changes 统一补齐 graph 及节点/tensor 的 unit 轴。
  • 保留 merge 前/merge 后原有 complete 补轴流程,不在 merge 后额外执行 reshape 补轴。
  • 记录并刷新 reshape axis changes,避免融合过程中 axis id 错乱或重复补轴。
  • 补充 UT 和 smoke 用例覆盖 leading/middle unit axis restore、幂等补轴与 axis mapping 场景。

变更类型

请选择本次引入的变更类型:

关联的Issue

如何测试

描述测试此变更的步骤和前提条件:

  1. /opt/buildtools/python-3.12.9/bin/python3 -mpre_commit run --files $(git diff --name-only HEAD~1)
  2. source /workspace/lingxing/Ascend0713/cann/bin/setenv.bash && cmake --build build/ge-compiler --target aihac_autofusion -j8
  3. smoke: tc_af_tf_pv_net_front_narrow_cut_onnx_0001/0002/0003

核对清单

其他信息

源分支基于上游 cann/ge:develop 创建:ling-DT/ge_0718:fix/autofuse-reshape-axis-padding-upstream

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 ling-DT 的贡献)
Lling-DT成员
7月28日 创建了 pull request,commit 5c7aa34f
atomgit-bot
atomgit-bot
7月28日 评论:

🤖 正在生成合并请求摘要,请稍候…

likedislike
不准确?
atomgit-bot
atomgit-bot
7月28日 评论:

🤖 AI 代码检视正在进行中,请稍候…

likedislike
不准确?
CANN-robotCANN-robot成员
7月28日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
7月28日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/ge xchu42, wangxiaotian995, 张德鹏 (3/2) 张德鹏 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

ling-DT, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
此处折叠了279条消息 查看更多
ling-DT成员
8月6日 评论:

/check-pr

likedislike
CANN-robot
CANN-robot成员
8月6日 评论:

The following label is not ready.

approved: Please wait for committers to review the code.

likedislike
张德鹏成员
8月6日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
8月6日 添加了label:approved
CANN-robotCANN-robot成员
8月6日 合入了pull request