Table of Contents

Method SetInference_UseCpu

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetInference_UseCpu(IMaaOption<ResourceOption>?)

Sets inference execution provider and device.

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

Parameters

opt IMaaOption<ResourceOption>?

The option.

Returns

bool

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

Exceptions

ArgumentNullException