Method SetInference_UseCoreML
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
SetInference_UseCoreML(IMaaOption<ResourceOption>?, int)
Sets inference execution provider and device.
public static bool SetInference_UseCoreML(this IMaaOption<ResourceOption>? opt, int coreMLFlags = -1)Parameters
optIMaaOption<ResourceOption>?-
The option.
coreMLFlagsint-
The CoreML flags.
Returns
Remarks
Reference to COREMLFlags.
But you need to pay attention to the onnxruntime version we use, the latest flag may not be supported.
Exceptions
SetInference_UseCoreML(IMaaOption<ResourceOption>?, InferenceCoreMLFlags)
Sets inference execution provider and device.
public static bool SetInference_UseCoreML(this IMaaOption<ResourceOption>? opt, InferenceCoreMLFlags coreMLFlags = (InferenceCoreMLFlags)-1)Parameters
optIMaaOption<ResourceOption>?-
The option.
coreMLFlagsInferenceCoreMLFlags-
The CoreML flags.
Returns
Remarks
Reference to COREMLFlags.
But you need to pay attention to the onnxruntime version we use, the latest flag may not be supported.