Entry point for the TensorFlow Lite (TFLite) Java API provided by Google Play Services.
Once the initialization has finished successfully, you can use the regular Tensorflow Lite APIs. To benefit
from the Play Services runtime, remember to initialize your InterpreterApi
instance with options.setRuntime(FROM_SYSTEM)
or
options.setRuntime(PREFER_SYSTEM_OVER_APPLICATION)
.
For more information about this API, see the TensorFlow Lite guide.
Public Method Summary
static Task<Void> |
initialize(Context
context)
Initializes the TFLite API with the default options (which are to disable
loading the GPU delegate).
|
Inherited Method Summary
Public Methods
public static Task<Void> initialize (Context context)
Initializes the TFLite API with the default options (which are to disable loading the GPU delegate). TFLite API methods should only be called after the task returned by this method has successfully completed.
This method returns a Task<Void>
, so you should wait for the task
to be completed, but the return value of the Task is irrelevant.