Skip to content

Conversation

@fumiama
Copy link
Contributor

@fumiama fumiama commented Dec 10, 2025

to eliminate the error in MacOS CoreML:
Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:Fail] Error compiling model: compiler error: Error reading protobuf spec. validator error: Layer '/variance_predictor/velocity_fn/input_projection/Add' consumes an input named 'variance_predictor.velocity_fn.input_projection.bias' which is not present in this network.

to eliminate the error:
Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:Fail] Error compiling model: compiler error: Error reading protobuf spec. validator error: Layer '/variance_predictor/velocity_fn/input_projection/Add' consumes an input named 'variance_predictor.velocity_fn.input_projection.bias' which is not present in this network.
Copilot AI review requested due to automatic review settings December 10, 2025 14:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a workaround for CoreML execution provider failures when processing complex ONNX models with topological issues. The fix adds a fallback mechanism that retries session creation with subgraph processing disabled if the initial attempt fails.

Key Changes:

  • Adds fallback logic to retry CoreML session creation with EnableOnSubgraphs=0 when initial creation fails
  • Updates CoreML configuration to use dictionary-based provider options instead of the deprecated flag-based API
  • Upgrades Microsoft.ML.OnnxRuntime package version from 1.23.0 to 1.23.2 for non-Windows platforms

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
OpenUtau.Core/Util/Onnx.cs Implements try-catch fallback logic for CoreML session creation and updates provider configuration API
OpenUtau.Core/OpenUtau.Core.csproj Updates OnnxRuntime package version to 1.23.2 for non-Windows platforms

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fumiama
Copy link
Contributor Author

fumiama commented Dec 10, 2025

Please note that the macos-13, osx-x64 is retired and canceled, so that it cannot pass all tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant