InferenceInput.ExpectedOutputStructure プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
予期される出力構造を表す空の InferenceOutput。
public Android.AdServices.OnDevicePersonalization.InferenceOutput ExpectedOutputStructure { [Android.Runtime.Register("getExpectedOutputStructure", "()Landroid/adservices/ondevicepersonalization/InferenceOutput;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getExpectedOutputStructure", "()Landroid/adservices/ondevicepersonalization/InferenceOutput;", "", ApiSince=35)>]
member this.ExpectedOutputStructure : Android.AdServices.OnDevicePersonalization.InferenceOutput
プロパティ値
- 属性
注釈
予期される出力構造を表す空の InferenceOutput。 LiteRT の場合、推論コードは、この予期される出力構造がモデルの出力シグネチャと一致するかどうかを確認します。
モデルが文字列テンソルを生成する場合:
{@code
String[] output = new String[3][2]; // Output tensor shape is [3, 2].
HashMap<Integer, Object> outputs = new HashMap<>();
outputs.put(0, output);
expectedOutputStructure = new InferenceOutput.Builder().setDataOutputs(outputs).build();
}
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。