Back to Tensorflow

lite/acceleration/configuration/c/gpu_plugin.h

tensorflow/lite/g3doc/api_docs/c/group/gpu-plugin.html

2.21.0997 B
Original Source

lite/acceleration/configuration/c/gpu_plugin.h

This header file is for the delegate plugin for GPU.

Summary

For the C++ delegate plugin interface, the GPU delegate plugin is added to the DelegatePluginRegistry by the side effect of a constructor for a static object, so there's no public API needed for this plugin, other than the API of tflite::delegates::DelegatePluginRegistrys, which is declared in delegate_registry.h.

But to provide a C API to access the GPU delegate plugin, we do expose some functions, which are declared below.

|

Functions

| | --- | | TfLiteGpuDelegatePluginCApi() | const TfLiteDelegatePlugin *

C API for the GPU delegate plugin. |

Functions

TfLiteGpuDelegatePluginCApi

const[TfLiteDelegatePlugin](/lite/api_docs/c/struct/tf-lite-delegate-plugin.html#struct_tf_lite_delegate_plugin)* TfLiteGpuDelegatePluginCApi()

C API for the GPU delegate plugin.

Returns a pointer to a statically allocated table of function pointers.