TfLiteInitializationOptions

public abstract class TfLiteInitializationOptions extends Object

Options for initializing TFLite.

Nested Class Summary

class TfLiteInitializationOptions.Builder Builder for TfLiteInitializationOptions instances. 

Public Constructor Summary

Public Method Summary

static TfLiteInitializationOptions.Builder
builder()
Creates a new TfLiteInitializationOptions builder.
abstract boolean
enableGpuDelegateSupport()
Returns whether GPU delegate support should be enabled.

Inherited Method Summary

Public Constructors

public TfLiteInitializationOptions ()

Public Methods

public static TfLiteInitializationOptions.Builder builder ()

Creates a new TfLiteInitializationOptions builder.

public abstract boolean enableGpuDelegateSupport ()

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.