已关闭
[Bug-Report|缺陷反馈]: 修复 matmul 算子日志拼写、语言混杂及调试输出问题 #4964
yangyang016创建于  14 天前关闭于  14 天前
yangyang016成员
14 天前 创建

问题描述

quant_batch_matmul_v3sparse4to2quant_matmul 中存在以下日志规范问题:

  1. quant_batch_matmul_v3 的错误日志中存在 failddeminsion 拼写错误。
  2. quant_batch_matmul_v3/tests 的运行时日志存在中英文混杂及中文字符,不利于日志规范统一和自动化分析。
  3. sparse4to2quant_matmul/op_host/op_api 中直接使用 std::cout 输出调试信息,不符合 opapi 日志规范。

影响范围

  • matmul/quant_batch_matmul_v3/op_graph
  • matmul/quant_batch_matmul_v3/op_host/op_tiling
  • matmul/quant_batch_matmul_v3/tests/st/aclnnQuantMatmulV4
  • matmul/sparse4to2quant_matmul/op_host/op_api

问题不影响算子计算逻辑,但会影响日志可读性、规范性及流水线静态检查结果。

期望修复

  • faild 修正为 failed
  • deminsion 修正为 dimension
  • 将测试运行时日志统一为英文。
  • 删除 opapi 中直接使用的 std::cout 调试输出,保留规范的 OP_LOGE 错误日志。
  • 对涉及的 C++ 文件执行仓库 clang-format,并确保格式检查通过。

验收标准

  • 目标目录中不再存在 failddeminsion
  • 测试运行时日志不再包含中文字符。
  • sparse4to2quant_matmul/op_host/op_api 中不再直接使用 std::cout
  • 相关静态检查及流水线通过。

关联 PR

https://gitcode.com/cann/ops-nn/pull/8995

likedislike
Yyangyang016成员
14 天前 添加了label:bug
CANN-robotCANN-robot成员
14 天前 关闭了 issue
CANN-robotCANN-robot成员
14 天前 添加了label:resolved