Share via


MLPredictionOptions.UsesCpuOnly Property

Definition

Gets or sets a Boolean value that indicates whether to restrict prediction computations to the CPU.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool UsesCpuOnly { [Foundation.Export("usesCPUOnly")] get; [Foundation.Export("setUsesCPUOnly:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("usesCPUOnly")>]
[<set: Foundation.Export("setUsesCPUOnly:")>]
member this.UsesCpuOnly : bool with get, set

Property Value

Attributes

Applies to