已关闭
[Bug-Report|缺陷反馈]: NllLossGrad算子获取属性ignoreIndex时不应该用int32去获取,应该用int64获取 #1101
wei-peng-1991创建于  2月24日关闭于  2月24日
wei-peng-1991
2月24日 创建

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

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

NllLossGrad算子中属性ignoreIndex是用int64存储的,获取属性时应该用int64指针获取,但是当前代码是用int32指针获取的,可能导致获取的数值不对

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

Ascend950

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

NllLossGrad算子中属性ignoreIndex的值超过了int32的表示范围

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

NllLossGrad算子中属性ignoreIndex是用int64存储的,获取属性时用int64指针获取

image.png

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

likedislike
Wwei-peng-1991
2月24日 修改了issue 的描述
Wwei-peng-1991
2月24日 关联了pull request:fix nll_loss_grad attr bug
jiangjiawei成员
2月24日 评论:
likedislike
Wwei-peng-1991
2月24日 issue状态由 进行中 改变为 已完成
Wwei-peng-1991
2月24日 关闭了 issue
CANN-robotCANN-robot成员
2月24日 添加了label:Accepted
CANN-robotCANN-robot成员
3月20日 添加了label:resolved