已合并
log_fix #8828
Alpha123_创建于 17 天前
log_fix #8828
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 Alpha123_ 的贡献)17 天前 关联了issue:[Documentation|文档反馈]: 【matmul算子】【非量化】日志易用性质整改
atomgit-bot
17 天前 评论:
17 天前 评论:
变更摘要
本 PR 主要针对 matmul 相关算子的日志、注释、头文件文档与标识符命名进行可读性和易用性整改,属于文档更新类改动。变更内容集中在:统一修正 OP_LOGE/OP_LOGW/OP_LOGI 等日志文案中的拼写与语法错误(如 shoule→should、can not→cannot、not support→does not support、only support→only supports),修正接口头文件中的 Doxygen 参数描述(如 workspace_size→workspaceSize、内存起址→内存地址、exector→executor),并纠正变量、函数与宏的拼写错误(如 CheckBMMTilingDataIsVaild→CheckBMMTilingDataIsValid、swizzlCount→swizzleCount、TRNAS→TRANS)。同时修正了文件头 \file 注释、头文件保护宏以及部分中文注释和文档说明,未涉及算子核心计算逻辑变更。
主要改动
- 统一修正日志与错误提示文案:批量修改
matmul各算子中的OP_LOGE/OP_LOGW/OP_LOGI消息,纠正shoule、can not、not support、receive等拼写/语法错误,并统一专有名词大小写(如BatchMatMulWeightNz、FusedMatmul),提升日志可读性。 - 修正头文件接口文档注释:将
aclnn_*.h中的 Doxygen 参数描述由workspace_size、exector、内存起址、那种、申的的等更正为workspaceSize、executor、内存地址、哪种、申请的,并修正aclnnTransposeBatchMatmul等算子名大小写及aclnn_mv.h的数据类型支持描述。 - 纠正标识符、变量与宏命名:将
CheckBMMTilingDataIsVaild→CheckBMMTilingDataIsValid、swizzlCount→swizzleCount、Int42Int32PackedTensor→Int4ToInt32PackedTensor、unique_executor→uniqueExecutor、Exector→Executor、Contigous→Contiguous、TRNAS→TRANS、SetAtomicnone→SetAtomicNone/AscendC::SetAtomicNone等拼写错误统一修正。 - 修正文件头注释与 include guard 宏:将大量源文件头
\file注释中的.cc更正为.cpp并修正错误文件名,同时修正多个头文件结尾的保护宏(如OP_API_INC_ADD_H_→OP_API_INC_ADDMV_H_、MMV3_MATMUL_KERNEL_H→对应文件的正确宏名)。 - 清理冗余日志并修正中文注释:删除
RotateQuantAptTiling::PrintTilingData()中冗余的tailML1日志,修正中文注释中的错别字与表述(如判决门限→判断门限、申明→声明、内涵→包含、stroageShape→storageShape),并调整部分被注释掉的说明块格式。


atomgit-bot
17 天前 评论:
17 天前 评论:
17 天前 添加了label:cann-cla/yes
此处折叠了172条消息 查看更多
范其瑞
8 天前 评论:
8 天前 评论:
/lgtm
/approve


8 天前 添加了label:lgtm
8 天前 关闭了关联的issue
8 天前 合入了pull request
CANN-robot
8 天前 评论:
8 天前 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


描述
算子的信息中存在拼写错误,且日志中存在中文、缺失度量等问题,影响日志可读性和易用性
整改issue
关联的Issue
https://gitcode.com/cann/ops-nn/issues/4864
文档更新
https://gitcode.com/cann/ops-nn/tree/master/matmul/addmv
https://gitcode.com/cann/ops-nn/tree/master/matmul/batch_mat_mul_v3
https://gitcode.com/cann/ops-nn/tree/master/matmul/common
https://gitcode.com/cann/ops-nn/tree/master/matmul/fused_mat_mul
https://gitcode.com/cann/ops-nn/tree/master/matmul/gemm_v2
https://gitcode.com/cann/ops-nn/tree/master/matmul/gemm_v3
https://gitcode.com/cann/ops-nn/tree/master/matmul/mat_mul_v3
https://gitcode.com/cann/ops-nn/tree/master/matmul/matmul_v2_compress_dequant
https://gitcode.com/cann/ops-nn/tree/master/matmul/mv
https://gitcode.com/cann/ops-nn/tree/master/matmul/rotate_quant
https://gitcode.com/cann/ops-nn/tree/master/matmul/transpose_batch_mat_mul
https://gitcode.com/cann/ops-nn/tree/master/matmul/transpose_quant_batch_mat_mul
类型标签
AI/Agent生成声明