Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhang-junming21 的贡献)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 |
|---|---|---|
| matmul | ✅ 范其瑞, 杨阳 (2/2) | ✅ 范其瑞, 杨阳 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
hid54649903, thanks for your pull request. All authors of the commits have signed the CLA. 👍


/compile


流水线任务触发成功
任务链接 [d2c250974c624268889ff53f1c2fffad][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-22 17:36:41] CI执行结束


流水线任务触发成功
任务链接 [b89325505c004e1e91189904e29189cc][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> |
[2026-06-22 17:30:55] CI执行结束


变更摘要
此 PR 修复了 batch_mat_mul_v3 的 vector 模板在 ATC 模型编译时的 bug。改动位于 batch_mat_mul_v3_vector.h 文件的 BatchMatmulVectorKernel::Init 函数中,将参数 BatchMatmulTilingData* tilingData 添加 const 限定符,变为 const BatchMatmulTilingData* tilingData。该函数内部对 tilingData 仅有只读访问(读取 vectorTilingInfo 的各个字段),添加 const 确保了 const 正确性,使得 ATC 编译器在调用处传入 const 指针时不再产生类型不匹配的编译错误。
主要改动
Init函数签名 const 修正: 在matmul/batch_mat_mul_v3/op_kernel/batch_mat_mul_v3_vector.h第 63 行,将BatchMatmulTilingData* tilingData参数改为const BatchMatmulTilingData* tilingData,保证调用方可以传入 const 指针,解决 ATC 模型编译时的类型不兼容问题。


/lgtm
/approve


/lgtm
/approve


描述
修复使用atc编译模型存在的bug
关联的Issue
Issue #3473
测试
ci无问题
文档更新
无
类型标签