setUseCpuOnly

public final void setUseCpuOnly(boolean value)

Enable CPU mode for ONNX. When true, forces CPU execution. When false, attempts to use GPU if available (CUDA/MPS).

Parameters

value

The value to set for the UseCpuOnly property.