Język

InferenceInput.Params.Builder.SetModelType(Int32) Method

Definition

The type of the pre-trained model.

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

Parameters

value
Int32

Value is one of the following: InferenceInput.Params.MODEL_TYPE_TENSORFLOW_LITE; InferenceInput.Params.MODEL_TYPE_EXECUTORCH

Returns

Attributes

Remarks

The type of the pre-trained model. If not set, the default value is InferenceInput.Params.MODEL_TYPE_TENSORFLOW_LITE.

Android reference for android.adservices.ondevicepersonalization.InferenceInput.Params.Builder.setModelType.

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