RuntimeFlavor

enum RuntimeFlavor

Represents a TFLite runtime. In contrast to TfLiteRuntime, this enum represents the actual runtime that is being used, whereas the latter represents a preference for which runtime should be used.

Summary

Enum Values

APPLICATION

A TFLite runtime built directly into the application.

SYSTEM

A TFLite runtime provided by the system (TFLite in Google Play Services).

Public functions

java-static RuntimeFlavor!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<RuntimeFlavor!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

APPLICATION

val RuntimeFlavor.APPLICATIONRuntimeFlavor

A TFLite runtime built directly into the application.

SYSTEM

val RuntimeFlavor.SYSTEMRuntimeFlavor

A TFLite runtime provided by the system (TFLite in Google Play Services).

Public functions

valueOf

java-static fun valueOf(name: String!): RuntimeFlavor!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
RuntimeFlavor!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<RuntimeFlavor!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<RuntimeFlavor!>!

an array containing the constants of this enum type, in the order they're declared