已合并
日志整改(im2col等算子) #5009
zhu-xun创建于 8 天前
日志整改(im2col等算子) #5009
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhu-xun 的贡献)atomgit-bot
8 天前 评论:
8 天前 评论:
变更摘要
本 PR 为日志整改类改动,针对 im2col、masked_select_v3、matrix_diag、matrix_set_diag(_v2)、roll、slice、strided_slice(_v2/_v3) 及多个 reduce_* 算子的日志与报错文案进行统一修正,涉及约 56 个文件,仅调整日志字符串内容,不改动任何业务逻辑。主要修正内容包括:补齐语法(如 support→supports/supported、must greater→must be greater)、纠正拼写错误(如 sucess→success、emelents→elements、Contigous→Contiguous、faild→failed)、统一格式列表的分隔符(去除中文顿号改用逗号)以及规范序号表达(如 -2th→-2nd、-1th→-1st)。
主要改动
im2col相关日志修正:在aclnn_im2col.cpp、im2col_tiling_arch35.cpp、im2col_infershape.cpp中修正self'dims→self's dims、funtion→function、only support→only supports等语法与拼写问题,使shapeSize、padding_mode等校验报错信息表达更规范。matrix_set_diag_v2序号与比较表达式修正:在matrix_set_diag_v2_tiling_arch35.cpp与matrix_set_diag_v2_infershape.cpp中,将-2th/-1th修正为-2nd/-1st,并将must greater than、must less than等改为must be greater than、must be less than,提升k与diagonal参数校验日志的可读性。reduce_*系列文案统一:在reduce_log_sum_exp、reduce_max、reduce_mean、reduce_min、reduce_prod、reduce_sum的 ONNX 插件中将is error统一为is invalid;同时在多个aclnn_*与 AICPU kernel 日志中将not support改为not supported/does not support,并将格式支持列表中的中文顿号改为英文逗号。- 拼写与用词纠错:批量修正
roll、slice、reduce_mean、reduce_sum、diag_part、cdist等算子的日志拼写错误,如emelents→elements、Contigous→Contiguous、faild→failed、mat lead→may lead、bug got→but got、data_tpye→data_type等,涉及op_api、op_host、op_kernel_aicpu各层日志。 matrix_diag与通用 tiling 日志规范:在matrix_diag_tiling_arch35.cpp中将Set tiling data is failed等改为Set tiling data failed形式,并修正strided_slice_tiling_arch35.cpp、matrix_set_diag_v2_tiling_arch35_base.cpp、arg_common_base_tiling.cpp中的Failed to core num→Failed to get core number、Entor→Enter等表达。


atomgit-bot
8 天前 评论:
8 天前 评论:
8 天前 添加了label:stat/needs-squash
8 天前 添加了label:cann-cla/yes
此处折叠了107条消息 查看更多
TangPC
7 天前 评论:
7 天前 评论:
/lgtm
/approve


7 天前 添加了label:approved
7 天前 添加了label:lgtm
7 天前 合入了pull request
描述
日志整改(im2col等算子)
关联的Issue
测试
文档更新
类型标签