Share via


InferenceInput.BatchSize Property

Definition

The number of input examples.

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

Property Value

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.

Java documentation for android.adservices.ondevicepersonalization.InferenceInput.getBatchSize().

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