Options for initializing TFLite.
| class | TfLiteInitializationOptions.Builder | Builder for
TfLiteInitializationOptions instances. |
|
| static TfLiteInitializationOptions.Builder |
builder()
Creates a new
TfLiteInitializationOptions builder.
|
| abstract boolean |
enableGpuDelegateSupport()
Returns whether GPU delegate support should be enabled.
|
Creates a new
TfLiteInitializationOptions builder.
Returns whether GPU delegate support should be enabled.
If this value is false, initialization will not attempt to load the GPU delegate,
and using a GpuDelegate in TFLite will fail.
Note that if the value is true but the device does not support GPU acceleration for TFLite, initialization will fail. In this case, your app can optionally fall back to initializing TFLite without GPU delegate support.
By default, the value is false.