Table of Contents

Method SetInference_UseAutoExecutionProvider

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetInference_UseAutoExecutionProvider(IMaaOption<ResourceOption>?)

Sets inference execution provider and device.

public static bool SetInference_UseAutoExecutionProvider(this IMaaOption<ResourceOption>? opt)

Parameters

opt IMaaOption<ResourceOption>?

The option.

Returns

bool

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

Exceptions

ArgumentNullException