Merged
【PR】feat:support conv2D & support dynamic shape for matmul #2689
xuyafeiAdd on May 9
【PR】feat:support conv2D & support dynamic shape for matmul #2689
Merged
xuyafeiAdd on May 9
xuyafei
xuyafeiCollaborators
May 9

Pull Request

描述

Conv2D融合编译能力

Python接口支持Conv2D编译:ascbc_conv_kernel_tiling_pro
Kernel生成支持Conv2D任务类型:根据芯片型号选择不同kernel类型
Tiling生成支持Conv2D:create_conv_tiling_data生成Conv2D专用tiling结构

动态shape tiling生成能力

Python接口支持动态shape编译:dynamic_shape_compile
Tiling生成区分静态/动态:静态shape编译时生成,动态shape运行时计算
新增动态tiling数据结构:create_matmul_dynamic_tiling_data

算子识别与调度能力

Conv2D类型识别:IsConv2DGraphType、IsConv2DFusedScheduled
Conv2D变体支持:Conv2D、Conv2DBias、Conv2DOffset、Conv2DOffsetBias
属性统一解析:ParseConv2DAttr统一处理4种Conv2D变体

Cube wrapper模板能力(codegen模块)

新增cube wrapper模板:为Conv2D/MatMul cube算子提供统一的wrapper生成框架
支持动态shape场景:wrapper中包含运行时tiling计算逻辑

变更类型

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

关联的Issue

如何测试

描述测试此变更的步骤和前提条件:
1.构建Conv2d融合结构
2.开启Conv2d融合能力,执行融合算子成功

核对清单

其他信息

在此添加任何其他关于本次 PR 的说明。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for xuyafei's contribution.)
xuyafeixuyafeiCollaborators
May 9 Created pull request, commit 11987872
xuyafeixuyafeiCollaborators
May 9 Added label: enhancement
CANN-robot
CANN-robotCollaborators
May 9 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


PR Approval Progress

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

Module Approval Details

module lgtm status approve status
repo-cann/ge ✅ zhujingjing, xchu42, wangxiaotian995 (3/2) ✅ zhujingjing (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
May 9 Added label: cann-cla/yes
8 event messages are collapsed here。 See more
xuyafeixuyafeiCollaborators
May 9 Modify description of pull request
xuyafei
xuyafeiCollaborators
May 9 Comments:

compile

likedislike
xuyafeixuyafeiCollaborators
May 9 Pre merge succeeded (commit_id: b7bf62b920fabc4d3c4f6b9ec5f0935a2abd3e1b)
CANN-robotCANN-robotCollaborators
May 9 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [001a5389c04745d690bf7d3e3c6cdba8][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_X86_compiler ✅ SUCCESS >>>>> >>>>>
Compile_X86_executor ✅ SUCCESS >>>>> >>>>>
Compile_X86_dflow ✅ SUCCESS >>>>> >>>>>
UT_Test_dflow ✅ SUCCESS
UT_Test_ge_common ✅ SUCCESS
UT_Test_parser ✅ SUCCESS
UT_Test_python ✅ SUCCESS >>>>>
UT_Test_rt ✅ SUCCESS
UT_Test_acl ✅ SUCCESS
UT_Test_autofuse ✅ SUCCESS
UT_Test_executor ✅ SUCCESS
UT_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_dflow ✅ SUCCESS
ST_Test_ge_common ⏳ waiting
ST_Test_parser ✅ SUCCESS
ST_Test_python ✅ SUCCESS >>>>>
ST_Test_rt ✅ SUCCESS
ST_Test_autofuse ⏳ waiting
ST_Test_executor ✅ SUCCESS
ST_Test_hetero ✅ SUCCESS
ST_Test_autofuse_ascendc_api ⏳ waiting
ST_Test_autofuse_e2e ⏳ waiting
UT_Test_fe ✅ SUCCESS
UT_Test_tefusion ✅ SUCCESS
ST_Test_fe ✅ SUCCESS
ST_Test_tefusion ✅ SUCCESS
UT_Test_Report_graphengine ⏳ waiting >>>>>
UT_Test_Report_ge_executor_c ⏳ waiting >>>>>
UT_Test_Report_ge_autofuse ⏳ waiting >>>>>
ST_Test_Report_graphengine ⏳ waiting >>>>>
ST_Test_Report_ge_executor_c ⏳ waiting >>>>>
ST_Test_Report_ge_autofuse ⏳ waiting >>>>>
UT_Test_Report_fe ⏳ waiting >>>>>
ST_Test_Report_fe ⏳ waiting >>>>>
likedislike
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [98dd9765fc80486192785396d02c3dc0][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_ARM_compiler ✅ SUCCESS >>>>> >>>>>
Compile_ARM_executor ✅ SUCCESS >>>>> >>>>>
Compile_ARM_dflow ✅ SUCCESS >>>>> >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>

[2026-05-09 11:46:01]    CI执行结束

likedislike
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [75fb44cf16d848c8b2cb1063856c52d7][流水线指导]

任务名称状态日志下载链接
Check_Pr ✅ SUCCESS >>>>>
codecheck ❌ FAILED
anti_virus ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
codecheck_dt ❌ FAILED >>>>>
precommit ⚠️ WARNING >>>>> >>>>>
likedislike
xuyafeixuyafeiCollaborators
May 9 Pre merge succeeded (commit_id: dc67eea602aca6e3f66baf5c924d793c8ad66b19)
xuyafeixuyafeiCollaborators
May 9 Pushed 1 commits:b8201c31-clean code
xuyafeixuyafeiCollaborators
May 9 Pre merge succeeded (commit_id: d1843cc130fd2fd79afc09ffd9e82211aa46207b)
CANN-robotCANN-robotCollaborators
May 9 Added label: stat/needs-squash
xuyafei
xuyafeiCollaborators
May 9 Comments:

compile

likedislike
xuyafeixuyafeiCollaborators
May 9 Pre merge succeeded (commit_id: d75de75f034c58e2edcaaf0198daca87d150249e)
CANN-robotCANN-robotCollaborators
May 9 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
May 9 Added label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
May 9 Removed label: ci-pipeline-failed
CANN-robotCANN-robotCollaborators
May 9 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [d156edaa616640e69d9651eb17d0449e][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_ARM_compiler ✅ SUCCESS >>>>> >>>>>
Compile_ARM_executor ✅ SUCCESS >>>>> >>>>>
Compile_ARM_dflow ✅ SUCCESS >>>>> >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>

[2026-05-09 12:04:52]    CI执行结束

likedislike
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [6e6905d215924051ac13f8d18564470b][流水线指导]

任务名称状态日志下载链接
pre_comment ✅ SUCCESS >>>>>
Compile_X86_compiler ✅ SUCCESS >>>>> >>>>>
Compile_X86_executor ✅ SUCCESS >>>>> >>>>>
Compile_X86_dflow ✅ SUCCESS >>>>> >>>>>
UT_Test_dflow ✅ SUCCESS
UT_Test_ge_common ✅ SUCCESS
UT_Test_parser ✅ SUCCESS
UT_Test_python ✅ SUCCESS >>>>>
UT_Test_rt ✅ SUCCESS
UT_Test_acl ✅ SUCCESS
UT_Test_autofuse ✅ SUCCESS
UT_Test_executor ✅ SUCCESS
UT_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_dflow ✅ SUCCESS
ST_Test_ge_common ✅ SUCCESS
ST_Test_parser ✅ SUCCESS
ST_Test_python ✅ SUCCESS >>>>>
ST_Test_rt ✅ SUCCESS
ST_Test_autofuse ✅ SUCCESS
ST_Test_executor ✅ SUCCESS
ST_Test_hetero ✅ SUCCESS
ST_Test_autofuse_ascendc_api ✅ SUCCESS
ST_Test_autofuse_e2e ✅ SUCCESS
UT_Test_fe ✅ SUCCESS
UT_Test_tefusion ✅ SUCCESS
ST_Test_fe ✅ SUCCESS
ST_Test_tefusion ✅ SUCCESS
UT_Test_Report_graphengine ✅ SUCCESS >>>>>
UT_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
UT_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
ST_Test_Report_graphengine ✅ SUCCESS >>>>>
ST_Test_Report_ge_executor_c ✅ SUCCESS >>>>>
ST_Test_Report_ge_autofuse ✅ SUCCESS >>>>>
UT_Test_Report_fe ✅ SUCCESS >>>>>
ST_Test_Report_fe ✅ SUCCESS >>>>>

[2026-05-09 12:25:17]    CI执行结束

likedislike
CANN-robot
CANN-robotCollaborators
May 9 Comments:

流水线任务触发成功
任务链接 [318f0ad435b04437a493892e0e099155][流水线指导]

任务名称状态日志下载链接
Check_Pr ✅ SUCCESS >>>>>
codecheck ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
codecheck_dt ✅ SUCCESS >>>>>
precommit ⚠️ WARNING >>>>> >>>>>

[2026-05-09 11:52:20]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
May 9 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
May 9 Added label: ci-pipeline-passed
xchu42
xchu42Collaborators
May 9 Comments:

/lgtm

likedislike
wangxiaotian995
wangxiaotian995Collaborators
May 9 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
May 9 Added label: lgtm
zhujingjing
zhujingjingCollaborators
May 9 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
May 9 Added label: approved
CANN-robot
CANN-robotCollaborators
May 9 Comments:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zhujingjing.
Reviewers who wrote a comment of /lgtm are: wangxiaotian995, zhujingjing, xchu42.

likedislike
CANN-robotCANN-robotCollaborators
May 9 Merged pull request