Open
[Bug-Report|缺陷反馈]: fused_linear_cross_entropy_loss_grad e2e golden 映射指向未上库的自建扩展名,e2e 验证路径不可用 #6678
zihan0007Add on  Oct 14
zihan0007
zihan0007Collaborators
Oct 14 Create

Describe the current behavior / 问题描述

matmul/fused_linear_cross_entropy_loss_grad/tests/assets/golden.py 的 e2e golden 映射指向自建扩展名 flceg_torch.fused_linear_cross_entropy_loss_grad,该扩展从未上库,ttk e2e 模式无法据此解析 API,算子 e2e 验证路径不可用。

Environment Information / 环境信息

  • 昇腾硬件型号:Ascend 950PR
  • CANN 版本:9.3.0 weekly 20261009
  • Python 版本:3.12
  • torch_npu:2.12.0.post3

Steps to reproduce the issue / 重现步骤

  1. 使用 ttk e2e 模式,--plugin 指向本算子 tests/assets(golden.py)
  2. e2e 用例 CSV 的 api_name 按 golden.py e2e 映射填写 flceg_torch.fused_linear_cross_entropy_loss_grad
  3. ttk 解析 API 时 flceg_torch 模块不存在,e2e 执行失败

Describe the expected behavior / 预期结果

e2e 映射指向 torch_npu 官方绑定 torch_npu.npu_fused_linear_cross_entropy_loss_with_max_sum_backward(op-plugin master 已合入,torch_npu 2.12.0.post3 起可用),e2e 验证路径可用。

修复后 ttk e2e 验证(Ascend950PR / CANN 9.3.0 weekly 20261009 / torch_npu 2.12.0.post3):

用例 模式 结果
hp(8 tensor,softmax 路径,BT=128) 高性能 PASS
mem(7 tensor,logits_max/sum_exp 路径,BT=256) 省显存 PASS

独立数值复核:golden 与 kernel 输出 maxdiff ≤ 6.1e-5(fp16 精度级)。mem 模式用例需显式 precision_tolerances(默认 stat_rel_err 标准对该模式小数值输出不适配)。

Special notes for this issue / 备注

关联 PR:https://gitcode.com/cann/ops-nn/merge_requests/11949

likedislike
zihan0007zihan0007Collaborators
Oct 14 Added label: bug-report
zihan0007
zihan0007Collaborators
Oct 14 Comments:

/assign @zihan0007

likedislike
CANN-robotCANN-robotCollaborators
Oct 14 Assign zihan0007 as responsible person
chenjiayi_chenjiayi_Collaborators
9 days ago Assign chenjiayi_ as responsible person
chenjiayi_
chenjiayi_Collaborators
9 days ago Comments:

补充说明本问题的处理进展:

已核对关联 PR 与当前指派,该 issue 仍处于 open,指派后评论区保持静止。

当前状态:

  • 关联 PR:PR#11949,状态 closed,closed_at=2026-10-25 13:45。
  • 当前责任人:zihan0007, chenjiayi_。
  • 指派时间:2026-10-14 15:57。
  • PR 合入记录为空。

依据(PR/评论):

  • PR#11949 的当前状态为 closed,关闭时间为 2026-10-25 13:45。
  • 本 issue 在指派后评论区保持静止。

后续:由责任人确认 PR#11949 的关闭原因;需要继续推进时重新提交或更新 PR,合入后复核 master 并关闭 issue。

MR 链接:https://gitcode.com/cann/ops-nn/pull/11949

likedislike
chenjiayi_chenjiayi_Collaborators
23 hours ago Removed responsible person chenjiayi_