Closed
[Bug-Report|缺陷反馈]: loop循环中assemble写法不带起始start偏移量时有精度问题 #3216
HuYiShengAdd on  Sep 4Closed at  Sep 7
HuYiSheng
HuYiShengCollaborators
Sep 4 Create

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

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

loop循环中assemble写法不带起始start偏移量时有精度问题,经定位tensor.py中_get_assemble_offset方法判断有误,请分析修改

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

【测试环境】:A5 环境

【测试版本】:
CANN 主线:cann_eco/br_hisi_trunk_ai/202608/20260902_000328244_newest
toch2.9.0+python3.10

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

python3 ops/pass_skills/test_coe_issue.py 1

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

python3 ops/pass_skills/test_coe_issue.py 1 精度正确

1)assemble出去时,不带start写法,有精度问题,精度工具定位为offset产生了负的偏移;

2)assemble出去时,显示的带上start,0:h,精度是正确的。

3)Agent源码分析,tensor.py中_get_assemble_offset方法判断有误

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

likedislike
HuYiSheng
HuYiShengCollaborators
Sep 4 Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
Sep 4 Assign HuYiSheng01 as responsible person
HuYiShengHuYiShengCollaborators
Sep 4 Associated pull request
CANN-robotCANN-robotCollaborators
Sep 7 Close issue
CANN-robotCANN-robotCollaborators
Sep 7 Added label: resolved