5 #include "armnn_delegate.hpp"
10 #include <tensorflow/lite/minimal_logging.h>
37 char** options_values,
39 void (*report_error)(
const char*))
42 TfLiteDelegate* delegate =
nullptr;
45 armnnDelegate::DelegateOptions options (options_keys, options_values, num_options, (*report_error));
48 catch (
const std::exception& ex)
52 report_error(ex.what());
void TfLiteArmnnDelegateDelete(TfLiteDelegate *tfLiteDelegate)
TfLiteDelegate * TfLiteArmnnDelegateCreate(armnnDelegate::DelegateOptions options)
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.
void tflite_plugin_destroy_delegate(TfLiteDelegate *delegate)
Destroy a given delegate plugin.