已关闭
[Bug-Report|缺陷反馈]: acos/sinh/square AICPU 算子错误日志 "ouput" 拼写错误(应为 output) #2962
OpenGood_WeChat创建于  27 天前关闭于  23 天前
OpenGood_WeChat
OpenGood_WeChat
27 天前 创建

一、问题描述 (必填)

ops-math 仓 acos、sinh、square 三个算子的 AICPU(CpuKernel)实现中,错误日志存在 5 处拼写错误:ouput 应为 output,与 asin 等兄弟算子同句模板的正确拼写不一致。

逐字证据:

  1. math/acos/op_kernel_aicpu/acos_aicpu.cpp 第 86、93 行:
KERNEL_LOG_ERROR(
    "The data type of the input [%s] need be the same as the ouput [%s].",
    ...);
KERNEL_LOG_ERROR(
    "The data size of the input [%lu] need be the same as the ouput "
    "[%lu].",
    ...);
  1. math/sinh/op_kernel_aicpu/sinh_aicpu.cpp 第 88、95 行:同款句模板,均为 ouput。

  2. math/square/op_kernel_aicpu/square_aicpu.cpp 第 128 行:

KERNEL_LOG_ERROR("The data type of the input [%s] need be the same as the ouput [%s].",
                 ...);

对照组(拼写正确):math/asin/op_kernel_aicpu/asin_aicpu.cpp 第 83、88 行同款句模板为 ...need be the same as the output [%s],拼写正确。

二、环境信息 (可选)

  • 仓库:cann/ops-math(master)

三、重现步骤 (可选)

在 AICPU 后端触发 acos/sinh/square 算子的 dtype 或 size 不匹配校验失败,观察错误日志文案。

四、预期结果 (可选)

日志文案拼写为 output。

💡 备注(选填)

纯日志文案问题,无功能影响,共 3 个文件 5 处。

likedislike
陈思陈思成员
25 天前 关联了pull request:fix: correct operator log wording
陈思
陈思成员
25 天前 评论:

处理结果

已在关联 PR 中修正 acos、sinh、square AICPU 校验日志里的 5 处 ouput 拼写错误,统一为 output。改动仅涉及日志文本,不改变算子逻辑。

likedislike
陈思陈思成员
25 天前 删除了关联的pull request:fix: correct operator log wording
陈思陈思成员
25 天前 删除了关联的pull request:fix: correct operator log wording
RikiRiki
25 天前 关联了pull request:fix: correct typo ouput -> output in acos/sinh/square AICPU error logs
陈思
陈思成员
25 天前 评论:

/assign @Twoliges

likedislike
CANN-robotCANN-robot成员
25 天前 将 Twoliges 设为负责人
CANN-robotCANN-robot成员
23 天前 关闭了 issue
CANN-robotCANN-robot成员
23 天前 添加了label:resolved