已关闭
[Usage]: 运行test_decomp.py 中 sparse 相关用例时失败 #2043
jiangna1111创建于 5月21日关闭于 5月28日
5月21日 添加了label:usage
5月21日 关联了pull request:Fix sparse mul out NPU registration
5月27日 修改标题为 “[Usage]: 运行test_decomp.py 中 sparse 相关用例时失败”,原标题为“[Usage]: 运行 PyTorch 社区用例 test_decomp.py 中 sparse 相关用例时失败”
5月27日 修改标题为 “[Usage]: 运行test_decomp.py 中 sparse 相关用例时失败”,原标题为“[Usage]: 运行 PyTorch 社区用例 test_decomp.py 中 sparse 相关用例时失败”
5月28日 关闭了 issue
5月28日 添加了label:resolved
在提交新问题之前,请确保您已经在社区中搜索过相关问题,并使用了社区中提供的资源/工具后,仍未找到满意的解决方式。
环境信息
使用场景及问题
运行 PyTorch 社区用例 test_decomp.py 中 sparse 相关用例时失败。
典型失败用例:
TestDecompPRIVATEUSE1.test_comprehensive_to_sparse_npu_float64
报错信息:
RuntimeError: CAUTION: The operator 'aten::mul.out' is not currently supported on the NPU backend.
初步定位:
mul.out 在 sparse 场景下需要注册 SparsePrivateUse1 backend,当前 NPU 未注册对应 sparse backend,导致 sparse tensor 执行 mul.out 时走到 unsupported fallback。
欢迎加入社区,感谢您对社区的贡献 🎉!