已合并
日志整改(im2col等算子) #5009
zhu-xun创建于 8 天前
日志整改(im2col等算子) #5009
已合并
zhu-xun创建于 8 天前
zhu-xun成员
8 天前

描述

日志整改(im2col等算子)

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhu-xun 的贡献)
Zzhu-xun成员
8 天前 创建了 pull request,commit 30fdf28e
atomgit-bot
atomgit-bot
8 天前 评论:

变更摘要

本 PR 为日志整改类改动,针对 im2colmasked_select_v3matrix_diagmatrix_set_diag(_v2)rollslicestrided_slice(_v2/_v3) 及多个 reduce_* 算子的日志与报错文案进行统一修正,涉及约 56 个文件,仅调整日志字符串内容,不改动任何业务逻辑。主要修正内容包括:补齐语法(如 supportsupports/supportedmust greatermust be greater)、纠正拼写错误(如 sucesssuccessemelentselementsContigousContiguousfaildfailed)、统一格式列表的分隔符(去除中文顿号改用逗号)以及规范序号表达(如 -2th-2nd-1th-1st)。

主要改动

  • im2col 相关日志修正:在 aclnn_im2col.cppim2col_tiling_arch35.cppim2col_infershape.cpp 中修正 self'dimsself's dimsfuntionfunctiononly supportonly supports 等语法与拼写问题,使 shapeSizepadding_mode 等校验报错信息表达更规范。
  • matrix_set_diag_v2 序号与比较表达式修正:在 matrix_set_diag_v2_tiling_arch35.cppmatrix_set_diag_v2_infershape.cpp 中,将 -2th/-1th 修正为 -2nd/-1st,并将 must greater thanmust less than 等改为 must be greater thanmust be less than,提升 kdiagonal 参数校验日志的可读性。
  • reduce_* 系列文案统一:在 reduce_log_sum_expreduce_maxreduce_meanreduce_minreduce_prodreduce_sum 的 ONNX 插件中将 is error 统一为 is invalid;同时在多个 aclnn_* 与 AICPU kernel 日志中将 not support 改为 not supported/does not support,并将格式支持列表中的中文顿号改为英文逗号。
  • 拼写与用词纠错:批量修正 rollslicereduce_meanreduce_sumdiag_partcdist 等算子的日志拼写错误,如 emelentselementsContigousContiguousfaildfailedmat leadmay leadbug gotbut gotdata_tpyedata_type 等,涉及 op_apiop_hostop_kernel_aicpu 各层日志。
  • matrix_diag 与通用 tiling 日志规范:在 matrix_diag_tiling_arch35.cpp 中将 Set tiling data is failed 等改为 Set tiling data failed 形式,并修正 strided_slice_tiling_arch35.cppmatrix_set_diag_v2_tiling_arch35_base.cpparg_common_base_tiling.cpp 中的 Failed to core numFailed to get core numberEntorEnter 等表达。
likedislike
atomgit-bot
atomgit-bot
8 天前 评论:

代码审查

✅ 未发现问题

likedislike
CANN-robotCANN-robot成员
8 天前 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
8 天前 添加了label:cann-cla/yes
此处折叠了107条消息 查看更多
TangPC
TangPC成员
7 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:approved
RuiWang_成员
7 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:lgtm
CANN-robotCANN-robot成员
7 天前 合入了pull request