TfLiteGpu

public classTfLiteGpuextendsObject

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 TfLiteGpuClientinstance that can eventually be used as an argument forOptionalModuleApi.
static Task<Boolean>
isGpuDelegateAvailable(Context context)
Returns whether the GPU delegate is supported on this device.

Inherited Method Summary

Public Methods

public staticTfLiteGpuClient getClient(Context context)

Returns aTfLiteGpuClient instance that can eventually be used as an argument forOptionalModuleApi.

public static Task<Boolean> isGpuDelegateAvailable(Context context)

Returns whether the GPU delegate is supported on this device.