Open
[功能问题][torch_npu.fused_cross_entropy_loss_with_max_sum]torch_npu.fused_cross_entropy_loss_with_max_sum算子存在 功能问题 #229
sleeveenAdd on 3 days ago
sleeveen
3 days ago Comments:
3 days ago Comments:
Bright_lwb
3 days ago Comments:
3 days ago Comments:
torch_npu2.10-2.12版本用的是不带npu_前缀的torch通路,torch_npu在2.13版本后把这个算子的torch单算子通路改成了加npu_前缀的,目前最新的应该是带npu_下划线前缀的,参考这个https://gitcode.com/Ascend/op-plugin/blob/master/docs/zh/custom_APIs/torch_npu/torch_npu-npu_fused_cross_entropy_loss_with_max_sum.md
所以这里的注册名其实没写错,这个算子的注册名在今年5月份进行过一次变动,目前golden里用的是最新的


确定性问题描述:[功能问题][torch_npu.fused_cross_entropy_loss_with_max_sum]torch_npu.fused_cross_entropy_loss_with_max_sum算子存在 功能问题
通路:torchapi
golden版本:20261103
golden链接:https://gitcode.com/opencann/operator-artifacts/blob/master/FusedCrossEntropyLossWithMaxSum/Golden/golden.py
cann版本:20261103
ttk版本:20261103
用例链接:https://gitcode.com/sleeveen/operator_test_case/tree/main/LongTail/Cases/Functional_Accuracy/torchapi/torch_npu.fused_cross_entropy_loss_with_max_sum
用例名:aclnnFusedCrossEntropyLossWithMaxSum_L0_tolerance_001、aclnnFusedCrossEntropyLossWithMaxSum_L0_tolerance_002
错误码:(未获取到)
复现命令:python3 -m ttk e2e -i 失败用例集_torch_npu.fused_cross_entropy_loss_with_max_sum_torchapi_功能失败.csv --dl=1 --plugin /home/CI/golden/torch_npu.fused_cross_entropy_loss_with_max_sum/ --device-whitelist=0 --xpu-perf -t aclnnFusedCrossEntropyLossWithMaxSum_L0_tolerance_001
问题现象:
CANNBot实际失败分析:
1) 失败根因与错误类别
用例、算子、NPU 侧均无问题。失败根因是插件 golden.py 的 spec 注册名写错
修复方法
spec 注册名改为真实 API 名(一行):
开发责任人:张磊
PL:张磊
迁移来源:https://gitcode.com/sleeveen/operator_test_case/issues/222