InferenceInput.Params.RecommendedNumThreads Property

Definition

The number of threads used for intraop parallelism on CPU, must be positive number.

public virtual int RecommendedNumThreads { [Android.Runtime.Register("getRecommendedNumThreads", "()I", "GetGetRecommendedNumThreadsHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getRecommendedNumThreads", "()I", "GetGetRecommendedNumThreadsHandler", ApiSince=35)>]
member this.RecommendedNumThreads : int

Property Value

Attributes

Remarks

The number of threads used for intraop parallelism on CPU, must be positive number. Adopters can set this field based on model architecture. The actual thread number depends on system resources and other constraints.

Java documentation for android.adservices.ondevicepersonalization.InferenceInput.Params.getRecommendedNumThreads().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to