Table of Contents

Method SetOption_InferenceExecutionProvider

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOption_InferenceExecutionProvider(IMaaOption<ResourceOption>?, InferenceExecutionProvider)

Sets value to an option.

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.

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.