已关闭
[Bug-Report|缺陷反馈]: #5865
田野创建于  20 天前关闭于  20 天前
田野成员
20 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

aclnnPreluBackward 的 CheckShape 校验与接口文档(docs/aclnnPreluBackward.md)不符,存在两类问题:

  1. gradWeight 校验错误:weight 元素个数非 1 时,强制要求 gradWeight 为一维 [channelSize],
    导致 gradWeight 与 weight 同 shape 的合法场景(文档明确要求"gradWeight的shape与weight的
    shape保持一致")被误判为 ACLNN_ERR_PARAM_INVALID。
  2. weight 自身形态未校验:仅校验 weight 元素个数等于 self 通道数,未校验形态,导致
    weight={2,2} + self={2,4,3,2} 这类文档不允许的输入被静默接受,且后续被 flatten 成
    一维送入 kernel 按通道权重计算,产生语义错误的结果。

Environment Information / 环境信息 (Mandatory / 必填)

Ascend950 PR/DT

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

输入self (1, 45000) weight(1, 45000) 会校验报错。

Describe the expected behavior / 预期结果 (Mandatory / 必填)

正常执行成功。不拦截

无

Special notes for this issue/备注 (Optional / 选填)

likedislike
田田野成员
20 天前 添加了label:bug-report
田野成员
20 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
20 天前 将 transformer910 设为负责人
CANN-robotCANN-robot成员
20 天前 关闭了 issue
CANN-robotCANN-robot成员
20 天前 添加了label:resolved
田田野成员
19 天前 关联了pull request:fix(prelu_backward): 按接口文档修正weight/gradWeight的shape校验