Language

InferenceOutput.Builder.SetData(Byte[]) Method

Definition

A byte array that holds output data.

[Android.Runtime.Register("setData", "([B)Landroid/adservices/ondevicepersonalization/InferenceOutput$Builder;", "", ApiSince=36)]
public Android.AdServices.OnDevicePersonalization.InferenceOutput.Builder SetData(byte[] value);
[<Android.Runtime.Register("setData", "([B)Landroid/adservices/ondevicepersonalization/InferenceOutput$Builder;", "", ApiSince=36)>]
member this.SetData : byte[] -> Android.AdServices.OnDevicePersonalization.InferenceOutput.Builder

Parameters

value
Byte[]

The serialized output data.

Returns

This builder, with the output data assigned.

Attributes

Remarks

A byte array that holds output data.

For LiteRT, this field is a serialized Map that is mapped to outputs of runForMultipleInputsOutputs: https://www.tensorflow.org/lite/api_docs/java/org/tensorflow/lite/InterpreterApi#parameters_9

For ExecuTorch model, this field is a serialized EValue array.

Android reference for android.adservices.ondevicepersonalization.InferenceOutput.Builder.setData.

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