Closed
[Bug-Report|缺陷反馈]: kl_div_loss_grad arch35 tiling 缺失 self 与 out shape 一致性校验,shape 不一致时未被拦截 #7726
chenfengAdd on 23 days agoClosed at 18 days ago
23 days ago Added label: bug-report
chenfeng
23 days ago Comments:
23 days ago Comments:
/assign @chenfeng61


23 days ago Assign chenfeng61 as responsible person
23 days ago Associated pull request
18 days ago Close issue
18 days ago Added label: resolved
Describe the current behavior / 问题描述
kl_div_loss_grad 算子存在以下缺陷:
接口文档(loss/kl_div_loss_grad/docs/aclnnKlDivBackward.md)错误码 161002(ACLNN_ERR_PARAM_INVALID)中已约定「self的shape与out的shape不相同」时报参数非法,aclnn 层已有该校验;但 arch35 tiling 入口(loss/kl_div_loss_grad/op_host/arch35/kl_div_loss_grad_tiling.cpp 的 DoOpTiling)此前未对 self 与 out 的 shape 一致性做校验,shape 不一致的输入未被拦截,直接进入后续 tiling 流程。
Environment Information / 环境信息
Steps to reproduce the issue / 重现步骤
Describe the expected behavior / 预期结果
tiling 阶段校验 self 与 out 的 storage shape 一致;不一致时输出 ACLNN_ERR_PARAM_INVALID_SHAPE 错误日志("The shape of parameter self must be the same as the shape of parameter out")并返回 GRAPH_FAILED,与接口文档错误码 161002 的约定对齐。
Related log / screenshot / 日志 / 截图
无运行日志,缺陷由接口文档与 arch35 tiling 实现比对发现,修复见关联 PR 的 diff。
Special notes for this issue/备注