RuntimeFlavor

public final 枚举 RuntimeFlavor

表示 TFLite 运行时。与 InterpreterApi.Options.TfLiteRuntime 相反,此枚举表示正在使用的实际运行时,而后者表示应使用哪个运行时的偏好设置。

继承的方法

final int
compareTo(RuntimeFlavor arg0)
整型
compareTo(Object arg0)
final 布尔值
equals(Object arg0)
final Class<E>
getDeclaringClass()
final int
hashCode()
final 字符串
name()
final int
ordinal()
字符串
toString()
static <T extends Enum<T>> T
valueOf(Class<T> arg0, String arg1)
布尔值
equals(Object arg0)
final Class<?>
getClass()
整型
hashCode()
最终无效
notify()
最终无效
notifyAll()
字符串
toString()
最终无效
wait(long arg0, int arg1)
最终无效
wait(long arg0)
最终无效
wait()
abstract int
compareTo(RuntimeFlavor arg0)

枚举值

public static final RuntimeFlavor APPLICATION

直接内置于应用中的 TFLite 运行时。

public static final RuntimeFlavor SYSTEM

系统提供的 TFLite 运行时(Google Play 服务中的 TFLite)。