InterpreterInitializer

Initializer for TFLite Interpreter. Needs to be run before any inference calls.

Functions

Link copied to clipboard
abstract fun initialize(context: Context, onSuccess: () -> Unit, onFailure: (Exception) -> Unit)

Initialize the encapsulated TFLite interpreter. Needs to be run on a non-UI thread.