Closed
[Bug-Report|缺陷反馈]: 开启精度工具后,发现expandFunction pass出现精度问题 #600
diceAdd on Mar 5Closed at Mar 26
Mar 5 Assign DCGDDD as responsible person
Mar 5 changed custom category from 任务 to 缺陷
Mar 5 Added label: Interpreter
Mar 6 Modify description of issue
gaoxingwang
Mar 6 Comments:
Mar 6 Comments:
已安排处理


Mar 9 associated Kanban: PyPTO
Mar 9 Assign Immutable01 as responsible person
杨旭
Mar 9 Comments:
Mar 9 Comments:
请 @Immutable01 协助处理一下~


Mar 9 Removed responsible person DCGDDD
高前程
Mar 16 Comments:
Mar 16 Comments:
精度工具定位过程:
1.比对精度工具输出与上板输出结果,两者一致,明确无误报情况。
2.比对精度工具pass4前与golden结果,两者一致,说明用户算子编写正确,pass4前,框架处理正确,明确问题源头在pass4 ExpandFunction
3.比对pass4与pass3精度工具Dump结果,发现在INDEX_ADD之后,数据首次出现差异,明确具体出错op
后续由pass定位


Mar 16 Assign KaiqiJin as responsible person
Mar 16 Removed responsible person Immutable01
Mar 16 Added label: Passes
Catherie
Mar 24 Comments:
Mar 24 Comments:
index_add算子按照当前的切分逻辑,当srcInput的axis轴维度大于selfInput的维度,会产生不合理的切分,进而导致精度问题。
修改后验证无问题:
https://gitcode.com/cann/pypto/pull/1898


Mar 25 Associated pull request
Mar 25 Associated milestone: 0.2.0
Mar 25 Associated pull request
dice
Mar 26 Comments:
Mar 26 Comments:
本地验证通过


Mar 26 changed custom state from 待办的 to 已完成
Mar 26 Close issue
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
算子代码如下:
精度工具打印如下,后续的pass存在同样的精度问题,同时上板结果存在精度问题。
Environment / 环境信息 (Mandatory / 必填)
npu: 910b
cann: 8.5.0
pypto: 33c49f1c
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
略
Describe the expected behavior / 预期结果 (Mandatory / 必填)
pass精度校验通过,上板精度正确
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
略
Special notes for this issue/备注 (Optional / 选填)