InferenceInput.Builder Constructors
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.
Overloads
| Name | Description |
|---|---|
| InferenceInput.Builder(InferenceInput+Params, Byte[]) |
Creates a new Builder with provided runtime parameters and input data. |
| InferenceInput.Builder(InferenceInput+Params, Object[], InferenceOutput) |
Note: use InferenceInput.Builder.Builder(Params,byte[]) instead. |
InferenceInput.Builder(InferenceInput+Params, Byte[])
Creates a new Builder with provided runtime parameters and input data.
[Android.Runtime.Register(".ctor", "(Landroid/adservices/ondevicepersonalization/InferenceInput$Params;[B)V", "", ApiSince=36)]
public Builder(Android.AdServices.OnDevicePersonalization.InferenceInput.Params params, byte[] inputData);
[<Android.Runtime.Register(".ctor", "(Landroid/adservices/ondevicepersonalization/InferenceInput$Params;[B)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.InferenceInput.Builder : Android.AdServices.OnDevicePersonalization.InferenceInput.Params * byte[] -> Android.AdServices.OnDevicePersonalization.InferenceInput.Builder
Parameters
- params
- InferenceInput.Params
configuration that controls runtime interpreter behavior. This value cannot be null.
- inputData
- Byte[]
byte array that holds serialized input data. This value cannot be null.
- Attributes
Remarks
Creates a new Builder with provided runtime parameters and input data.
Android reference for android.adservices.ondevicepersonalization.InferenceInput.Builder.Builder.
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
InferenceInput.Builder(InferenceInput+Params, Object[], InferenceOutput)
Note: use InferenceInput.Builder.Builder(Params,byte[]) instead.
[Android.Runtime.Register(".ctor", "(Landroid/adservices/ondevicepersonalization/InferenceInput$Params;[Ljava/lang/Object;Landroid/adservices/ondevicepersonalization/InferenceOutput;)V", "", ApiSince=35)]
public Builder(Android.AdServices.OnDevicePersonalization.InferenceInput.Params params, Java.Lang.Object[] inputData, Android.AdServices.OnDevicePersonalization.InferenceOutput expectedOutputStructure);
[<Android.Runtime.Register(".ctor", "(Landroid/adservices/ondevicepersonalization/InferenceInput$Params;[Ljava/lang/Object;Landroid/adservices/ondevicepersonalization/InferenceOutput;)V", "", ApiSince=35)>]
new Android.AdServices.OnDevicePersonalization.InferenceInput.Builder : Android.AdServices.OnDevicePersonalization.InferenceInput.Params * Java.Lang.Object[] * Android.AdServices.OnDevicePersonalization.InferenceOutput -> Android.AdServices.OnDevicePersonalization.InferenceInput.Builder
Parameters
- params
- InferenceInput.Params
configuration that controls runtime interpreter behavior. This value cannot be null.
- inputData
- Object[]
an array of input data. This value cannot be null.
- expectedOutputStructure
- InferenceOutput
an empty InferenceOutput representing the expected output structure. This value cannot be null.
- Attributes
Remarks
Note: use InferenceInput.Builder.Builder(Params,byte[]) instead.
Android reference for android.adservices.ondevicepersonalization.InferenceInput.Builder.Builder.
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.