Langue

InferenceInput.ExpectedOutputStructure Propriété

Définition

InferenceOutput vide représentant la structure de sortie attendue.

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

Valeur de propriété

Attributs

Remarques

InferenceOutput vide représentant la structure de sortie attendue. Pour LiteRT, le code d’inférence vérifie si cette structure de sortie attendue correspond à la signature de sortie du modèle.

Si un modèle produit des tenseurs de chaîne :

{@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 documentation pour android.adservices.ondevicepersonalization.InferenceInput.getExpectedOutputStructure().

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à