已关闭
[Bug-Report|缺陷反馈]: matmul_v2_compress_dequant op_api 校验日志算子名 copy-paste 错误(MatmulUnzip 应为 MatmulCompressDequant) #5351
OpenGood_WeChat创建于  22 天前关闭于  17 天前
OpenGood_WeChat
OpenGood_WeChat
22 天前 创建

一、问题描述 (必填)

ops-nn 仓 matmul/matmul_v2_compress_dequant 算子 op_api 实现中,x1 shape 校验失败日志误用了 MatmulUnzip 算子名(copy-paste 自 matmul_unzip 算子),实际本算子接口名为 aclnnMatmulCompressDequant,误导排查。

逐字证据:

matmul/matmul_v2_compress_dequant/op_host/op_api/aclnn_matmul_compress_dequant.cpp 第 121-124 行:

if (dimTensor1 != 2 || dimTensor2 != 1) { // ND format dims > 2 for x1
    OP_LOGE(ACLNN_ERR_PARAM_INVALID, "MatmulUnzip not support x1 shape %s, x2 shape %s",
            op::ToString(x1Shape).GetString(), op::ToString(x2Shape).GetString());
    return false;

该文件对应的算子接口为 aclnnMatmulCompressDequant(同目录 aclnn_matmul_compress_dequant.h 第 21、24 行:@brief aclnnMatmulCompressDequant的第一段接口... / ACLNN_API aclnnStatus aclnnMatmulCompressDequantGetWorkspaceSize(...)),日志中的算子名应为 MatmulCompressDequant(或本文件的 apiName_ 变量)。

二、环境信息 (可选)

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

三、重现步骤 (可选)

调用 aclnnMatmulCompressDequantGetWorkspaceSize,传入 x1 非 2 维或 x2 非 1 维的 shape,观察错误日志:文案为 MatmulUnzip not support x1 shape ...

四、预期结果 (可选)

日志文案中的算子名与当前算子一致(MatmulCompressDequant)。

💡 备注(选填)

纯日志文案问题,无功能影响,共 1 处。

likedislike
yuning_chenyuning_chen成员
20 天前 将 yolic 设为负责人
yuning_chen
yuning_chen成员
20 天前 评论:

您好,感谢反馈,问题已收到,正在处理。

likedislike
yuning_chenyuning_chen成员
20 天前 将 void_ptr 设为负责人
Vvoid_ptr成员
19 天前 关联了pull request:fix(MatmulCompressDequant): correct the op name in log.
CANN-robotCANN-robot成员
17 天前 关闭了 issue
CANN-robotCANN-robot成员
17 天前 添加了label:resolved