24.02
|
Functions | |
TfLiteDelegate * | tflite_plugin_create_delegate (char **options_keys, char **options_values, size_t num_options, void(*report_error)(const char *)) |
This file defines two symbols that need to be exported to use the TFLite external delegate provider. More... | |
void | tflite_plugin_destroy_delegate (TfLiteDelegate *delegate) |
Destroy a given delegate plugin. More... | |
TfLiteDelegate* tflite::tflite_plugin_create_delegate | ( | char ** | options_keys, |
char ** | options_values, | ||
size_t | num_options, | ||
void(*)(const char *) | report_error | ||
) |
This file defines two symbols that need to be exported to use the TFLite external delegate provider.
This is a plugin that can be used for fast integration of delegates into benchmark tests and other tools. It allows loading of a dynamic delegate library at runtime.
The external delegate also has Tensorflow Lite Python bindings. Therefore the dynamic external delegate can be directly used with Tensorflow Lite Python APIs.
See tensorflow/lite/delegates/external for details or visit the tensorflow guide here Implementation of the TfLite external delegate plugin
For details about what options_keys and option_values are supported please see: armnnDelegate::DelegateOptions::DelegateOptions(char const* const*, char const* const*,size_t,void (*)(const char*))
Definition at line 36 of file armnn_external_delegate.cpp.
References armnnDelegate::TfLiteArmnnDelegateCreate().
void tflite::tflite_plugin_destroy_delegate | ( | TfLiteDelegate * | delegate | ) |
Destroy a given delegate plugin.
[in] | delegate | Delegate to destruct |
Definition at line 62 of file armnn_external_delegate.cpp.
References armnnDelegate::TfLiteArmnnDelegateDelete().