已合并
修复 matmul 相关算子的日志规范问题 #8995
yangyang016创建于 15 天前
修复 matmul 相关算子的日志规范问题 #8995
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 yangyang016 的贡献)15 天前 创建了 pull request,commit ac5b371a
atomgit-bot
15 天前 评论:
15 天前 评论:
变更摘要
该 PR(标题 "fix log")主要针对 quant_batch_matmul_v3 算子相关模块的日志与报错信息进行清理和修正:统一修正英文拼写错误(如 faild → failed、deminsion → dimension)、将测试用例中的中文日志改为英文并优化格式,同时移除 sparse4to2quant_matmul 中的调试输出语句。整体为日志/信息文案层面的修复,不涉及业务逻辑变更。
主要改动
- 修正
quant_batch_matmul_v3执行与 tiling 报错拼写: 在quant_batch_matmul_v3_fallback.cpp的OP_LOGE与quant_batch_matmul_v3_tiling.cpp的CUBE_INNER_ERR_REPORT中,将错误信息中的faild更正为failed,提升日志可读性。 - 修正
quant_batch_matmul_v3_tiling_base.cpp报错文案与代码格式: 将CheckShapeInRangeForMandtoryInputs中的deminsion更正为dimension,并清理AnalyzeInputs中的行尾空白、调整AnalyzeMxGroupInfo中多行表达式(如mxPertokenMSize、mxPertokenKSize、mxScaleNSize的取值)的换行缩进格式,无逻辑变化。 - 测试用例日志中英文化: 在
executor_aclnnQuantMatmulV4.py中,将各场景(Scenario 0~5)的logging.info/logging.error中文信息统一改为英文(如 "Case ID"、"Scenario N: pertoken - no, bias - no"),并对部分超长日志进行分行格式化,便于日志检索与统一。 - 移除调试输出并补充文件结尾换行: 在
aclnn_trans_sparse4to2_para.cpp的ProcessWeightBlock中删除两条std::cout调试打印(权重 pattern 值输出),并在文件末尾补充换行符,避免调试信息污染输出。


atomgit-bot
15 天前 评论:
15 天前 评论:
15 天前 添加了label:cann-cla/yes
CANN-robot
15 天前 评论:
15 天前 评论:
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.
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 |
|---|---|---|
| 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
yangyang016, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了42条消息 查看更多
15 天前 添加了label:approved
wangzitao
15 天前 评论:
15 天前 评论:
/lgtm
/approve


15 天前 添加了label:lgtm
15 天前 关闭了关联的issue
15 天前 合入了pull request
描述
本 PR 统一修复 matmul 相关算子的日志规范问题:
quant_batch_matmul_v3日志中的拼写错误:faild修改为failed。deminsion修改为dimension。quant_batch_matmul_v3/tests中含中文字符、中英文混杂的运行时日志统一为英文。sparse4to2quant_matmul/op_host/op_api中直接使用的std::cout调试输出,保留规范的OP_LOGE错误日志。本次修改仅涉及日志文本、调试输出及代码格式,不改变算子计算逻辑。
关联的Issue
https://gitcode.com/cann/ops-nn/issues/4964
测试
quant_batch_matmul_v3,确认不存在faild、deminsion。sparse4to2quant_matmul/op_host/op_api,确认不存在直接使用的std::cout。git diff --check --cached检查通过。文档更新
不涉及。
类型标签
AI/Agent生成声明