已关闭
[Bug-Report|缺陷反馈]: RIG infershape 除0报错修改 #4675
wuao创建于  19 天前关闭于  15 天前
wuao
19 天前 创建

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

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

构造repeat_inter_leave_grad的repeat = 0的场景,出现coredump

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

Acend950

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

构造repeat_inter_leave_grad,repeatshape为1,repeat = 0的场景

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

日志报错: 不支持改场景,不出现coredumo

=== poc_div08_repeat_interleave_grad ===
Vulnerability: repeat_interleave_grad_infershape.cpp:47
Division by zero: inputGradShape->GetDim(axisAttr) / repeatsInput->GetData()[0]
Trigger: repeats tensor with data value=0 (INT64), axis=0
[] AddGraph ret = 0
[
] RunGraph (repeats data=0, axis=0 → div0)...
Floating point exception (core dumped)

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

likedislike
yuning_chenyuning_chen成员
19 天前 将 wow5523 设为负责人
CANN-robotCANN-robot成员
15 天前 关闭了 issue
CANN-robotCANN-robot成员
15 天前 添加了label:resolved