[Mobile] NNAPI cannot Split without num_outputs #24274
Labels
api:CSharp
issues related to the C# API
.NET
Pull requests that update .net code
platform:mobile
issues related to ONNX Runtime mobile; typically submitted using template
Describe the issue
NNAPI on Android cannot perform Split version 18 without num_outputs attribute:
I investigated op_builder_helpers.cc:14. Looks like the logic sets num_outputs to zero as default if not specified. However Split works totally differently depending on whether num_outputs is specified or not.
To reproduce
Install OnnxRuntime from NuGet. Exception throws when creating InferenceSession with this model and NNAPI provider:
验证模型.zip
Illustrated by netron
This model works fine on Windows CUDA or CPU.
Urgency
No response
Platform
Android
OS Version
HarmonyOS 4.2
ONNX Runtime Installation
Released Package
Compiler Version (if 'Built from Source')
No response
Package Name (if 'Released Package')
Microsoft.ML.OnnxRuntime
ONNX Runtime Version or Commit ID
1.21.0
ONNX Runtime API
C#
Architecture
X64
Execution Provider
NNAPI
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: