{
"error_type": "unsupported_op_npu",
"description": "算子在NPU设备上未实现",
"error_patterns": [
"op not supported: Split is not implemented for NPU device",
"kernel not found for op type Split on NPU",
"NPU: operator 'Split' is not supported",
"算子 Split 在NPU上不支持",
"[ERROR] Split kernel not found on NPU",
"operator Split failed on NPU device"
],
"diagnosis": {
"cause": "模型中包含的算子在NPU设备上没有对应的实现kernel",
"check_points": [
"MindSpore Lite算子支持列表中NPU是否支持该算子",
"是否有其他设备(CPU/GPU)支持该算子",
"算子是否有替代实现方式(如Split->Slices)"
]
},
"suggestions": [
"尝试使用CPU或GPU设备运行: --device=CPU 或 --device=GPU",
"使用ohos_runtime_op_fix工具修复ONNX模型中不支持的算子",
"查看MindSpore Lite算子支持列表确认NPU支持情况"
],
"example_log": "[ERROR] op not supported: operator 'Split' is not implemented for NPU device. No kernel found for this operator type on NPU. Please switch to CPU/GPU or use ohos_runtime_op_fix to replace with Slices.",
"operators": ["Split", "Mod", "TopK", "OneHot", "Where"],
"device": "NPU",
"replacement_available": {
"Split": {
"strategy": "split_to_slices",
"description": "将Split算子替换为多个Slice算子"
},
"Mod": {
"strategy": "mod_to_sub_mul_div",
"description": "将Mod算子替换为Sub+Mul+Div组合"
}
}
}