InferenceInput.Params.Builder.SetRecommendedNumThreads(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The number of threads used for intraop parallelism on CPU, must be positive number.
[Android.Runtime.Register("setRecommendedNumThreads", "(I)Landroid/adservices/ondevicepersonalization/InferenceInput$Params$Builder;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.InferenceInput.Params.Builder SetRecommendedNumThreads(int value);
[<Android.Runtime.Register("setRecommendedNumThreads", "(I)Landroid/adservices/ondevicepersonalization/InferenceInput$Params$Builder;", "", ApiSince=35)>]
member this.SetRecommendedNumThreads : int -> Android.AdServices.OnDevicePersonalization.InferenceInput.Params.Builder
Parameters
- value
- Int32
Value is 1 or greater
Returns
- 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.
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.