mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Exclude EPs that aren't available on mobile to try and fix Xamarin build error on M1. (#11267)
This commit is contained in:
parent
4854a09340
commit
c5de493a8a
1 changed files with 3 additions and 1 deletions
|
|
@ -821,7 +821,9 @@ namespace Microsoft.ML.OnnxRuntime
|
|||
// CoreML is available on iOS and macOS so we can't exclude based on __MOBILE__ && __IOS__
|
||||
[DllImport(NativeLib.DllName, CharSet = CharSet.Ansi)]
|
||||
public static extern IntPtr /*(OrtStatus*)*/ OrtSessionOptionsAppendExecutionProvider_CoreML(IntPtr /*(OrtSessionOptions*)*/ options, uint coreml_flags);
|
||||
#endif
|
||||
|
||||
#if !__MOBILE__
|
||||
// on non-mobile platforms any of these EPs are possible
|
||||
[DllImport(NativeLib.DllName, CharSet = CharSet.Ansi)]
|
||||
public static extern IntPtr /*(OrtStatus*)*/ OrtSessionOptionsAppendExecutionProvider_Dnnl(IntPtr /*(OrtSessionOptions*) */ options, int use_arena);
|
||||
|
|
@ -1659,4 +1661,4 @@ namespace Microsoft.ML.OnnxRuntime
|
|||
return System.Text.Encoding.UTF8.GetBytes(str + Char.MinValue);
|
||||
}
|
||||
} //class NativeMethods
|
||||
} //namespace
|
||||
} //namespace
|
||||
|
|
|
|||
Loading…
Reference in a new issue