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


问题/功能描述
本次PR包含两项主要修改。第一项为aclnnAscendQuantV3GetWorkspaceSize函数增加了详细的调试日志输出,旨在提升函数在开发和问题排查阶段的可观测性,便于跟踪执行流程和定位潜在问题。第二项在动态块量化算子的形状检查逻辑中,新增了对输入张量x和输出缩放因子scale维度数量一致性的验证,修复了原有逻辑的遗漏,增强了算子输入参数的鲁棒性,避免因维度不匹配导致后续计算错误。
修改方案描述
在aclnnAscendQuantV3GetWorkspaceSize函数的关键执行节点(如函数入口、DFX阶段、参数检查等)插入了多个OP_LOGD调试日志语句,使内部执行顺序和状态变化对开发者可见。同时,在DynamicBlockQuantI8::CheckShape函数中,于原有维度检查后新增了显式的维度数量一致性检查,通过比较x和scale的GetDimNum()返回值,确保两者维度数相同,若不一致则提前记录错误并返回失败状态。


🔵 source code change are detected, tasks labels is removed in this pull request!


🔵 source code change are detected, tasks labels is removed in this pull request!


流水线任务触发成功
任务链接 [dc022f36417e442094644314efd590a8][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 解析CI分支 | ✅ SUCCESS | ||
| codecheck | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| 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 | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| Pre_Compile | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| Smoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-03-19 17:34:07] CI执行结束


/lgtm
/approve


/lgtm
/approve


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: zhajianqing123, liujie12345678.
Reviewers who wrote a comment of /lgtm are: liujie12345678, zhajianqing123.


描述
dynamicBlockQuant算子未校验scale维度,增加相关维度校验,ascend_quant_v3算子在校验输入x为nullptr之前有获取x相关属性,异常报错,须修改顺序
关联的Issue
关联Issue #1593
测试
经调用测试,dynamicQuant scale维度可以校验,ascend_quant_v3可正常抛出空指针报错
文档更新
类型标签