Merged
fix(operation): Conv3D adds a new tileCin check item #6594
luyakun_hwAdd on Sep 21
fix(operation): Conv3D adds a new tileCin check item #6594
Merged
luyakun_hwAdd on Sep 21
luyakun_hw
Sep 21

1、新增Conv3D约束,tileCinFmap和tileCinWeight需要是cin的因子
2、docs/zh/api/tensor_api/config/pypto-set_conv_tile_shapes.md文档增加约束描述

https://gitcode.com/cann/pypto/issues/3407

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for luyakun_hw's contribution.)
luyakun_hwluyakun_hw
Sep 21 Created pull request, commit 5b35b310
luyakun_hwluyakun_hw
Sep 21 Associated issue: [Bug-Report|缺陷反馈]: Conv3d用例当tileCinFmap/weight不是cin的因子时有精度问题
atomgit-bot
atomgit-bot
Sep 21 Comments:

变更摘要

本 PR 针对 Conv3D 场景补充了新的切分约束校验:在 CheckTileTiling 流程中,当 attrParam.isConv3D 成立时,新增对 tileCinFmap 与 tileCinWeight 的可整除性检查,要求二者能够整除 cin(以 ConvAlignB(cinWeight, k0) 对齐后的结果为准)。同时按 PR 描述,相关约束说明被补充到 docs/zh/api/tensor_api/config/pypto-set_conv_tile_shapes.md 文档中。

主要改动

  • 新增 Conv3D 分支校验: 在 conv_utils.cpp 的 CheckTileTiling 中增加 if (attrParam.isConv3D) 分支,使该组约束仅在 Conv3D 场景下生效。
  • tileCinFmap 可整除性检查: 调用 CheckDivisible(ConvAlignB(cinWeight, k0), tileCinFmap, "cin", "tileCinFmap"),校验 tileCinFmap 是 cin 的因子。
  • tileCinWeight 可整除性检查: 调用 CheckDivisible(ConvAlignB(cinWeight, k0), tileCinWeight, "cin", "tileCinWeight"),校验 tileCinWeight 是 cin 的因子。
  • 文档同步更新: 按 PR 描述,在 pypto-set_conv_tile_shapes.md 中补充对应的 Conv3D 约束说明。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 21 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 21 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 21 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
9.2.0 ✅ 陈娇, dai-zhentao (2/2) ✅ 陈娇 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Sep 21 Comments:

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Sep 21 Set xinweiliu,lyz0328,cam_bxh,dai-zhentao,TianXL,lululu40888,shi-dingkun,gguuaanngg,codehjp423,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,gcw_kUomxQ2l,Andy-lb,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Sep 21 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
luyakun_hw
luyakun_hw
Sep 21 Comments:

compile

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

/reject

likedislike
conv2d_ci
conv2d_ci
Sep 21 Comments:
pipeline history
TimeNameResultLink
2026-09-21 20:06:37Start_PipelineMR_21
likedislike
xinweiliu
xinweiliuCollaborators
Sep 22 Comments:

/approve

likedislike
dai-zhentao
dai-zhentaoCollaborators
Sep 22 Comments:

/lgtm

likedislike
chenjiao
chenjiaoCollaborators
Sep 22 Comments:

/approve

likedislike
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: xinweiliu

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