Home
last modified time | relevance | path

Searched refs:StatefulNnApiDelegate (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_disabled.cc22 static StatefulNnApiDelegate* delegate = new StatefulNnApiDelegate(); in NnApiDelegate()
26 StatefulNnApiDelegate::StatefulNnApiDelegate(const NnApi* /* nnapi */) in StatefulNnApiDelegate() function in tflite::StatefulNnApiDelegate
27 : StatefulNnApiDelegate() {} in StatefulNnApiDelegate()
29 StatefulNnApiDelegate::StatefulNnApiDelegate(Options /* options */) in StatefulNnApiDelegate() function in tflite::StatefulNnApiDelegate
30 : StatefulNnApiDelegate() {} in StatefulNnApiDelegate()
32 StatefulNnApiDelegate::StatefulNnApiDelegate(const NnApi* /* nnapi */, in StatefulNnApiDelegate() function in tflite::StatefulNnApiDelegate
34 : StatefulNnApiDelegate() {} in StatefulNnApiDelegate()
36 StatefulNnApiDelegate::StatefulNnApiDelegate() in StatefulNnApiDelegate() function in tflite::StatefulNnApiDelegate
42 TfLiteStatus StatefulNnApiDelegate::DoPrepare(TfLiteContext* /* context */, in DoPrepare()
47 TfLiteBufferHandle StatefulNnApiDelegate::RegisterNnapiMemory( in RegisterNnapiMemory()
[all …]
Dnnapi_delegate.h40 class StatefulNnApiDelegate : public TfLiteDelegate {
131 StatefulNnApiDelegate();
136 explicit StatefulNnApiDelegate(const NnApi* nnapi);
142 explicit StatefulNnApiDelegate(Options options);
151 StatefulNnApiDelegate(const NnApi* nnapi, Options options);
153 ~StatefulNnApiDelegate() = default;
Dnnapi_delegate_errno_test.cc35 stateful_delegate_.reset(new StatefulNnApiDelegate(nnapi, options_)); in SingleOpModelWithNNAPI()
39 StatefulNnApiDelegate* GetDelegate() { return stateful_delegate_.get(); } in GetDelegate()
46 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
47 StatefulNnApiDelegate::Options options_;
Dnnapi_delegate_device_selection_test.cc44 void Init(const NnApi* nnapi, tflite::StatefulNnApiDelegate::Options options, in Init()
48 stateful_delegate_.reset(new StatefulNnApiDelegate(nnapi, options)); in Init()
74 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
107 void InitWithOptions(tflite::StatefulNnApiDelegate::Options options) { in InitWithOptions()
126 tflite::StatefulNnApiDelegate::Options options; in TEST_F()
150 tflite::StatefulNnApiDelegate::Options options; in TEST_F()
176 tflite::StatefulNnApiDelegate::Options options; in TEST_F()
189 tflite::StatefulNnApiDelegate::Options options; in TEST_F()
203 tflite::StatefulNnApiDelegate::Options options; in TEST_F()
216 StatefulNnApiDelegate* GetDelegate() { return stateful_delegate_.get(); } in GetDelegate()
[all …]
Dnnapi_delegate_nnapi_failure_handling_test.cc62 StatefulNnApiDelegate::Options options; in AddSubOpsAcceleratedModel()
64 stateful_delegate_.reset(new StatefulNnApiDelegate(nnapi, options)); in AddSubOpsAcceleratedModel()
83 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
Dnnapi_delegate.cc583 bool ShouldUseTargetDevices(StatefulNnApiDelegate::Options delegate_options, in ShouldUseTargetDevices()
616 const auto delegate_options = StatefulNnApiDelegate::GetOptions(delegate); in GetTargetDevices()
3624 StatefulNnApiDelegate::GetOptions(params->delegate); in Init()
3639 &StatefulNnApiDelegate::GetTensorMemoryMap(params->delegate); in Init()
3708 StatefulNnApiDelegate::GetOptions(node->delegate); in Prepare()
3731 StatefulNnApiDelegate::Options::ExecutionPreference::kUndefined) { in Prepare()
3840 StatefulNnApiDelegate::GetOptions(node->delegate); in Invoke()
4683 const StatefulNnApiDelegate::Options& delegate_options, in BuildGraph()
4782 StatefulNnApiDelegate::Data::Data(const NnApi* nnapi) : nnapi(nnapi) {} in Data()
4784 StatefulNnApiDelegate::Data::~Data() { in ~Data()
[all …]
Dnnapi_delegate_kernel.h334 const std::vector<StatefulNnApiDelegate::MemoryRegistration>*
361 const StatefulNnApiDelegate::Options& options,
Dnnapi_delegate_test.cc69 stateful_delegate_.reset(new StatefulNnApiDelegate(options_)); in SingleOpModelWithNNAPI()
74 const StatefulNnApiDelegate::Options& options) { in SingleOpModelWithNNAPI()
77 stateful_delegate_.reset(new StatefulNnApiDelegate(options_)); in SingleOpModelWithNNAPI()
86 StatefulNnApiDelegate* GetDelegate() { return stateful_delegate_.get(); } in GetDelegate()
148 StatefulNnApiDelegate::Options options_;
149 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
161 FloatAddOpModel(const StatefulNnApiDelegate::Options& options, in FloatAddOpModel()
267 StatefulNnApiDelegate::Options options; in TEST()
318 StatefulNnApiDelegate::Options options; in TEST()
320 StatefulNnApiDelegate::Options::ExecutionPreference::kLowPower; in TEST()
[all …]
Dnnapi_delegate_signed_quantization_test.cc45 stateful_delegate_.reset(new StatefulNnApiDelegate(nnapi, options_)); in Init()
49 StatefulNnApiDelegate* GetDelegate() { return stateful_delegate_.get(); } in GetDelegate()
57 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
58 StatefulNnApiDelegate::Options options_;
/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/native/
Dnnapi_delegate_jni.cc30 StatefulNnApiDelegate::Options options = StatefulNnApiDelegate::Options(); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
32 (StatefulNnApiDelegate::Options::ExecutionPreference)preference; in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
55 auto delegate = new StatefulNnApiDelegate(options); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
76 StatefulNnApiDelegate* nnapi_delegate = in Java_org_tensorflow_lite_nnapi_NnApiDelegate_getNnapiErrno()
77 reinterpret_cast<StatefulNnApiDelegate*>(delegate); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_getNnapiErrno()
85 delete reinterpret_cast<StatefulNnApiDelegate*>(delegate); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_deleteDelegate()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dnnapi_plugin.h38 absl::make_unique<tflite::StatefulNnApiDelegate>(options_); in Create()
41 delete static_cast<tflite::StatefulNnApiDelegate*>(delegate); in Create()
46 static_cast<tflite::StatefulNnApiDelegate*>(from_delegate); in GetDelegateErrno()
79 const tflite::StatefulNnApiDelegate::Options& Options() { return options_; } in Options()
82 static inline tflite::StatefulNnApiDelegate::Options::ExecutionPreference
86 tflite::StatefulNnApiDelegate::Options::ExecutionPreference; in ConvertExecutionPrefence()
114 tflite::StatefulNnApiDelegate::Options options_;
Dnnapi_plugin_test.cc143 StatefulNnApiDelegate::Options::kUndefined>(); in TEST_F()
145 StatefulNnApiDelegate::Options::kLowPower>(); in TEST_F()
147 StatefulNnApiDelegate::Options::kFastSingleAnswer>(); in TEST_F()
149 StatefulNnApiDelegate::Options::kSustainedSpeed>(); in TEST_F()
Dconfiguration.proto101 // tflite::StatefulNnApiDelegate
/external/tensorflow/tensorflow/lite/tools/delegates/
Dnnapi_delegate_provider.cc102 StatefulNnApiDelegate::Options options; in CreateTfLiteDelegate()
120 tflite::StatefulNnApiDelegate::Options::ExecutionPreference in CreateTfLiteDelegate()
122 tflite::StatefulNnApiDelegate::Options::kUndefined; in CreateTfLiteDelegate()
125 tflite::StatefulNnApiDelegate::Options::kLowPower; in CreateTfLiteDelegate()
128 tflite::StatefulNnApiDelegate::Options::kSustainedSpeed; in CreateTfLiteDelegate()
131 tflite::StatefulNnApiDelegate::Options::kFastSingleAnswer; in CreateTfLiteDelegate()
134 tflite::StatefulNnApiDelegate::Options::kUndefined; in CreateTfLiteDelegate()
174 new StatefulNnApiDelegate(nnapi_impl, options), in CreateTfLiteDelegate()
176 delete reinterpret_cast<StatefulNnApiDelegate*>(delegate); in CreateTfLiteDelegate()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/c/
Dnnapi_plugin.cc34 return new tflite::StatefulNnApiDelegate(nnapi_plugin.Options()); in CreateDelegate()
38 delete static_cast<tflite::StatefulNnApiDelegate*>(delegate); in DestroyDelegate()
43 static_cast<tflite::StatefulNnApiDelegate*>(from_delegate); in DelegateErrno()
/external/tensorflow/tensorflow/lite/tools/evaluation/
Dutils.cc108 TfLiteDelegatePtr CreateNNAPIDelegate(StatefulNnApiDelegate::Options options) { in CreateNNAPIDelegate()
111 new StatefulNnApiDelegate(options), [](TfLiteDelegate* delegate) { in CreateNNAPIDelegate()
112 delete reinterpret_cast<StatefulNnApiDelegate*>(delegate); in CreateNNAPIDelegate()
Dutils.h72 TfLiteDelegatePtr CreateNNAPIDelegate(StatefulNnApiDelegate::Options options);
/external/tensorflow/tensorflow/lite/examples/label_image/
Dlabel_image.cc144 StatefulNnApiDelegate::Options options; in GetDelegates()
/external/tensorflow/
DRELEASE.md656 …Prefer controlling this via delegate options, e.g. `tflite::StatefulNnApiDelegate::Options::allow_…
1179 … * Set default value for `StatefulNnApiDelegate::Options::max_number_delegated_partitions` to 3.