已开启
fix: restore reshape axes before autofuse can-fuse #1
fix: restore reshape axes before autofuse can-fuse #1
已开启
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

核对清单

其他信息

本 PR 基于 test/autofuse-can-fuse-coverage-master 创建,目标是只包含当前 reshape 补轴修复相关增量。

likedislike
合并受阻
ling-DT成员
7月28日 评论:

Compile

通过:

source /workspace/lingxing/Ascend0713/cann/bin/setenv.bash && cmake --build build/ge-compiler --target aihac_autofusion -j8

结果:[100%] Built target aihac_autofusion

likedislike