This class is deprecated.
Please use Model.createModel(Context, String, Options).
Builder for Model.
| Model |
build()
|
| Model.Builder | |
| Model.Builder |
setNumThreads(int numThreads)
Sets number of threads.
|
Creates a builder which loads tflite model from asset folder using memory-mapped files.
| context | Application context to access assets. |
|---|---|
| modelPath | Asset path of the model (.tflite file). |
| IOException | if an I/O error occurs when loading the tflite model. |
|---|
Sets running device. By default, TFLite will run on CPU.
| device |
|---|
Sets number of threads. By default it's 1.
| numThreads |
|---|