Table of Contents

Method SetOption_InferenceExecutionProvider

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOption_InferenceExecutionProvider(IMaaOption<ResourceOption>?, InferenceExecutionProvider)

Use the specified inference execution provider Please set this option before loading the model.

public static bool SetOption_InferenceExecutionProvider(this IMaaOption<ResourceOption>? opt, InferenceExecutionProvider value)

Parameters

opt IMaaOption<ResourceOption>?

The option.

value InferenceExecutionProvider

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Remarks

value: MaaInferenceExecutionProvider, eg: 0; val_size: sizeof(MaaInferenceExecutionProvider) default value is MaaInferenceExecutionProvider_Auto

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.