InferenceInput.ExpectedOutputStructure プロパティ

定義

予期される出力構造を表す空の 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();
            }

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象