Helper class for GPU delegate support in TensorFlow Lite (TFLite) for Google Play services.
The GPU delegate is not supported on all Android devices, due to differences in available OpenGL versions, driver features, and device resources. This class provides information on whether the GPU delegate is suitable for the current device.
Public Method Summary
static TfLiteGpuClient |
getClient(Context
context)
Returns a
TfLiteGpuClient instance that can eventually be used as an argument
for OptionalModuleApi .
|
static Task<Status> |
getGpuDelegateAvailabilityStatus(Context
context)
Gets the availability status of the TFLite GPU delegate module.
|
static Task<Boolean> |
isGpuDelegateAvailable(Context
context)
Returns whether the GPU delegate is supported on this device.
|
Inherited Method Summary
Public Methods
public static TfLiteGpuClient getClient (Context context)
Returns a TfLiteGpuClient
instance that can eventually be used as an argument for OptionalModuleApi
.
public static Task<Status> getGpuDelegateAvailabilityStatus (Context context)
Gets the availability status of the TFLite GPU delegate module.