Język

InferenceInput.Builder.SetBatchSize(Int32) Method

Definition

The number of input examples.

[Android.Runtime.Register("setBatchSize", "(I)Landroid/adservices/ondevicepersonalization/InferenceInput$Builder;", "", ApiSince=35)]
public Android.AdServices.OnDevicePersonalization.InferenceInput.Builder SetBatchSize(int value);
[<Android.Runtime.Register("setBatchSize", "(I)Landroid/adservices/ondevicepersonalization/InferenceInput$Builder;", "", ApiSince=35)>]
member this.SetBatchSize : int -> Android.AdServices.OnDevicePersonalization.InferenceInput.Builder

Parameters

value
Int32

Returns

Attributes

Remarks

The number of input examples. Adopter can set this field to run batching inference. The batch size is 1 by default. The batch size should match the input data size.

Android reference for android.adservices.ondevicepersonalization.InferenceInput.Builder.setBatchSize.

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