TfLiteGpuDelegateV2Create top-level property

Pointer<TfLiteDelegate> Function(Pointer<TfLiteGpuDelegateOptionsV2> options) TfLiteGpuDelegateV2Create
final

Creates a new delegate instance that need to be destroyed with TfLiteGpuDelegateV2Delete when delegate is no longer used by TFLite.

This delegate encapsulates multiple GPU-acceleration APIs under the hood to make use of the fastest available on a device.

When options is set to nullptr, then default options are used.

Implementation

final Pointer<TfLiteDelegate> Function(Pointer<TfLiteGpuDelegateOptionsV2> options) TfLiteGpuDelegateV2Create =
    tfliteGpuLib.lookup<NativeFunction<Pointer<TfLiteDelegate> Function(Pointer<TfLiteGpuDelegateOptionsV2> options)>>('TfLiteGpuDelegateV2Create').asFunction();