GpuDelegate.Options

Öffentliche statische Klasse GpuDelegate.Options

Diese Klasse wurde eingestellt.
Verwende stattdessen GpuDelegateFactory.Options.

Übernimmt GpuDelegateFactory.Options aus Kompatibilitätsgründen mit vorhandenem Code.

Übernommene Konstanten

org.tensorflow.lite.gpu.GpuDelegateFactory.Options
int INFERENCE_PREFERENCE_FAST_SINGLE_ANSWER Delegate wird nur einmal verwendet. Daher sollte die Bootstrap-/init-Zeit berücksichtigt werden.
int INFERENCE_PREFERENCE_SUSTAINED_SPEED Bevorzugen Sie, den Durchsatz zu maximieren.

Public Constructors

Übernommene Methoden

org.tensorflow.lite.gpu.GpuDelegateFactory.Options
boolean
GpuDelegateFactory.Options.GpuBackend
int
String
String
boolean
GpuDelegateFactory.Options
setForceBackend(GpuDelegateFactory.Options.GpuBackend erzwingen Backend)
Legt das GPU-Back-End fest.
GpuDelegateFactory.Options
setInferencePreference(int-Präferenz)
Legt die Inferenzpräferenz für Kompromisse bei Genauigkeit/Kompilation/Laufzeit fest.
GpuDelegateFactory.Options
setPrecisionLossAllowed(boolesche PräzisionLossAllowed)
Legt fest, ob ein Genauigkeitsverlust zulässig ist.
GpuDelegateFactory.Options
setQuantizedModelsAllowed(boolesch, quantizedModelsAllowed)
Ermöglicht die Ausführung quantisierter Modelle mit dem Delegaten.
GpuDelegateFactory.Options
setSerializationParams(String serializationDir, String modelToken)
Aktiviert die Serialisierung im Delegaten.
boolean
equals(Objekt arg0)
final Class<?>
getClass()
int
hashCode()
endgültig void
notify()
endgültig void
notifyAll()
String
toString()
endgültig void
wait(long arg0, int arg1)
endgültig void
wait(lange arg0)
endgültig void
wait()

Public Constructors

public Optionen ()