Merged
fix(interface): Fix ConvBackwardInput tileKL1 tiling validation #5887
hongyiliu111Add on Sep 3
fix(interface): Fix ConvBackwardInput tileKL1 tiling validation #5887
Merged
hongyiliu111Add on Sep 3
hongyiliu111
Sep 3

fix(interface): Fix ConvBackwardInput tileKL1 tiling validation

Changes:

  • Add check that tileKL1 is divisible by Cout0 * Hk * Wk
  • Fix kAlignL1 to ConvAlignB(tileKL1, K0) in BpCheckL0TileTiling
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for hongyiliu111's contribution.)
hongyiliu111hongyiliu111
Sep 3 Created pull request, commit c0ad1550
atomgit-bot
atomgit-bot
Sep 3 Comments:

变更摘要

该 PR 修复了 ConvBackwardInput(卷积反向输入)tiling 校验逻辑,改动集中在 framework/src/interface/operation/convbp_operation_impl.cpp。核心内容包括两处:一是修正 BpCheckL0TileTiling 中 kAlignL1 的计算方式,移除多余的 kh * kw 因子;二是在 BpCheckTileTiling 中新增对 tileKL1 的整除性校验,要求其能被 Cout0 * Hk * Wk 整除,并为此补充 kh、kw 的取值逻辑(含对 1D/3D 场景维度索引 indexH 的处理)。

主要改动

  • 修正 kAlignL1 计算:在 BpCheckL0TileTiling 中将 kAlignL1 由 ConvAlignB(tileKL1, k0) * kh * kw 改为 ConvAlignB(tileKL1, k0),去掉了多余的 kh * kw 乘因子,使对齐后的 L1 tile 尺寸计算更准确。
  • 新增 tileKL1 整除性校验:在 BpCheckTileTiling 中增加 CHECK,要求 tileKL1 % (k0 * kh * kw) == 0,即 tileKL1 必须能被 Cout0 * Hk * Wk(k0 * kh * kw)整除,否则以 ExternalError::INVALID_VAL 报错。
  • 补充 kh/kw 取值逻辑:为支撑上述校验,将 indexW、win 的声明下移,并新增对 1D/3D 卷积区分处理的 indexH 及 kh、kw 计算(1D 卷积时 kh 取 1,否则从 weightTensor 形状按维度索引读取)。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 3 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 3 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 3 Comments:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

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

Module Approval Details

module lgtm status approve status
framework/src/interface/operation ✅ shi-dingkun, xinweiliu (2/2) ✅ shi-dingkun (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Sep 3 Set xinweiliu,cam_bxh,dai-zhentao,lululu40888,shi-dingkun,gguuaanngg,codehjp423,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Sep 3 Set xinweiliu,cam_bxh,dai-zhentao,shi-dingkun,gguuaanngg,yinjie27_,tsungl4,make_pto,linjiashu as approver
hongyiliu111hongyiliu111
Sep 3 Associated issue: [Bug-Report|缺陷反馈]:ConvBackwardInput在tileKL1不满足约束条件时报错提示不清晰
hongyiliu111
hongyiliu111
Sep 3 Comments:

/compile

likedislike
hongyiliu111hongyiliu111
Sep 3 Pre merge succeeded (commit_id: a8026e52ab74b03919a3398396d52017cebab010)
CANN-robot
CANN-robotCollaborators
Sep 3 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 3 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 3 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 3 Added label: ci-pipeline-passed
lileizheng
lileizheng
Sep 3 Comments:

/reject

likedislike
conv2d_ci
conv2d_ci
Sep 3 Comments:
pipeline history
TimeNameResultLink
2026-09-03 11:13:22Start_PipelineMR_13
likedislike
conv2d_ci
conv2d_ci
Sep 3 Comments:
pipeline history
TimeNameResultLink
2026-09-03 11:16:05Sync_PR ✅ SUCCESSIb26e0fe
likedislike
conv2d_ci
conv2d_ci
Sep 3 Comments:
pipeline history
TimeNameResultLink
2026-09-03 11:16:24Trigger_RDV ✅ SUCCESSHAVA#92035
likedislike
conv2d_ci
conv2d_ci
Sep 3 Comments:
pipeline history
TimeNameResultLink
2026-09-03 11:19:10RDV_Result ❌ FAILUREHAVA#92035
likedislike
xinweiliu
xinweiliuCollaborators
Sep 4 Comments:

/lgtm

likedislike
shi-dingkun
shi-dingkunCollaborators
Sep 4 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 4 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Sep 4 Closed associated issue
CANN-robotCANN-robotCollaborators
Sep 4 Merged pull request