Home
last modified time | relevance | path

Searched refs:TfLiteDelegate (Results 1 – 25 of 170) sorted by relevance

1234567

/external/tensorflow/tensorflow/lite/delegates/external/
Dexternal_delegate.cc28 using CreateDelegatePtr = std::add_pointer<TfLiteDelegate*(
31 using DestroyDelegatePtr = std::add_pointer<void(TfLiteDelegate*)>::type;
67 TfLiteDelegate* tflite_external_delegate() { return external_delegate_; } in tflite_external_delegate()
70 TfLiteDelegate* tflite_wrapper_delegate() { return &wrapper_delegate_; } in tflite_wrapper_delegate()
79 TfLiteDelegate* external_delegate_;
82 TfLiteDelegate wrapper_delegate_;
87 TfLiteDelegate* delegate) { in GetExternalDelegateWrapper()
92 TfLiteStatus DelegatePrepare(TfLiteContext* context, TfLiteDelegate* delegate) { in DelegatePrepare()
94 TfLiteDelegate* external_delegate = in DelegatePrepare()
102 struct TfLiteDelegate* delegate, in DelegateCopyFromBufferHandle()
[all …]
/external/tensorflow/tensorflow/lite/delegates/utils/dummy_delegate/
Ddummy_delegate.h44 TfLiteDelegate* TfLiteDummyDelegateCreate(const DummyDelegateOptions* options);
47 void TfLiteDummyDelegateDelete(TfLiteDelegate* delegate);
54 inline std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>
56 return std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>( in TfLiteDummyDelegateCreateUnique()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.h40 class StatefulNnApiDelegate : public TfLiteDelegate {
159 static const Options GetOptions(TfLiteDelegate* delegate);
196 TfLiteDelegate* delegate);
270 TfLiteDelegate* delegate);
276 TfLiteDelegate* delegate,
284 TfLiteDelegate* delegate,
292 TfLiteDelegate* delegate,
304 TfLiteContext* context, TfLiteDelegate* delegate, const NnApi* nnapi,
335 TfLiteDelegate* NnApiDelegate();
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dprelu_test.cc30 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
50 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
71 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
92 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
113 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
134 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
155 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
176 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
196 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
217 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
[all …]
Dmean_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
50 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
71 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
92 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
113 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
134 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
155 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
182 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
209 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
230 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
[all …]
Dpad_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
48 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
67 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
86 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
105 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
143 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
162 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
181 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
200 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
[all …]
Ddiv_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dsub_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dadd_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dmul_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dminimum_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dmaximum_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dsquared_difference_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
49 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
74 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
99 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
124 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
149 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
174 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
199 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
224 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
249 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
[all …]
Dfully_connected_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
48 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
68 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
90 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
113 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
136 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
159 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
183 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
207 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
232 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
[all …]
Dreshape_test.cc30 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
51 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
72 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
93 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
114 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
134 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
154 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
172 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
190 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
204 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
Dleaky_relu_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
48 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
66 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
81 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
95 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
118 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
Dsoftmax_test.cc29 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
48 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
64 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
79 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)>
93 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
121 std::unique_ptr<TfLiteDelegate, decltype(&TfLiteXNNPackDelegateDelete)> in TEST()
/external/tensorflow/tensorflow/lite/python/testdata/
Dtest_delegate.cc35 TfLiteDelegate* tflite_plugin_create_delegate(char** options_keys, in tflite_plugin_create_delegate()
53 TfLiteDelegate* ptr = new TfLiteDelegate; in tflite_plugin_create_delegate()
54 ptr->Prepare = [](TfLiteContext* context, TfLiteDelegate* delegate) { in tflite_plugin_create_delegate()
66 void tflite_plugin_destroy_delegate(TfLiteDelegate* delegate) { in tflite_plugin_destroy_delegate()
/external/tensorflow/tensorflow/lite/
Dtflite_with_xnnpack.cc22 std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>
27 return std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>( in AcquireXNNPACKDelegate()
/external/tensorflow/tensorflow/lite/c/
Dcommon.h64 struct TfLiteDelegate;
414 struct TfLiteDelegate* delegate;
480 struct TfLiteDelegate* delegate;
615 struct TfLiteDelegate* delegate;
672 const TfLiteIntArray* nodes_to_replace, struct TfLiteDelegate* delegate);
865 typedef struct TfLiteDelegate { struct
877 struct TfLiteDelegate* delegate); argument
884 struct TfLiteDelegate* delegate, argument
891 struct TfLiteDelegate* delegate, argument
900 struct TfLiteDelegate* delegate, argument
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dmetal_delegate.h28 typedef struct TfLiteDelegate TfLiteDelegate; typedef
64 TFL_CAPI_EXPORT extern TfLiteDelegate* TFLGpuDelegateCreate(
68 TFL_CAPI_EXPORT extern void TFLGpuDelegateDelete(TfLiteDelegate* delegate);
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dgpu_api_delegate.h72 TFL_CAPI_EXPORT TfLiteDelegate* TfLiteGpuDelegateCreate_New(
76 TFL_CAPI_EXPORT void TfLiteGpuDelegateDelete_New(TfLiteDelegate* delegate);
92 TfLiteDelegate* delegate, GLuint buffer_id, int tensor_index,
101 TfLiteDelegate* delegate, size_t* size, const uint8_t** data);
/external/tensorflow/tensorflow/lite/delegates/utils/
Dsimple_delegate.h39 std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>;
120 static TfLiteDelegate* CreateSimpleDelegate(
127 static void DeleteSimpleDelegate(TfLiteDelegate* delegate);
/external/tensorflow/tensorflow/lite/tools/evaluation/
Dutils.cc34 return TfLiteDelegatePtr(nullptr, [](TfLiteDelegate*) {}); in CreateNullDelegate() argument
102 [](TfLiteDelegate*) {}); in CreateNNAPIDelegate() argument
111 new StatefulNnApiDelegate(options), [](TfLiteDelegate* delegate) { in CreateNNAPIDelegate()
160 TfLiteDelegate* delegate = TfLiteHexagonDelegateCreate(options); in CreateHexagonDelegate()
165 return TfLiteDelegatePtr(delegate, [](TfLiteDelegate* delegate) { in CreateHexagonDelegate()
187 return TfLiteDelegatePtr(xnnpack_delegate, [](TfLiteDelegate* delegate) { in CreateXNNPACKDelegate()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/c/
Ddelegate_plugin.h31 typedef TfLiteDelegate *TfLiteDelegatePluginCreateFunc(
37 typedef void TfLiteDelegatePluginDestroyFunc(TfLiteDelegate *);
42 typedef int TfLiteDelegatePluginGetDelegateErrnoFunc(TfLiteDelegate *);

1234567