/external/tensorflow/tensorflow/lite/delegates/nnapi/ |
D | nnapi_delegate_disabled.cc | 22 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 …]
|
D | nnapi_delegate.h | 40 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;
|
D | nnapi_delegate_errno_test.cc | 35 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_;
|
D | nnapi_delegate_device_selection_test.cc | 44 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 …]
|
D | nnapi_delegate_nnapi_failure_handling_test.cc | 62 StatefulNnApiDelegate::Options options; in AddSubOpsAcceleratedModel() 64 stateful_delegate_.reset(new StatefulNnApiDelegate(nnapi, options)); in AddSubOpsAcceleratedModel() 83 std::unique_ptr<StatefulNnApiDelegate> stateful_delegate_;
|
D | nnapi_delegate.cc | 583 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 …]
|
D | nnapi_delegate_kernel.h | 334 const std::vector<StatefulNnApiDelegate::MemoryRegistration>* 361 const StatefulNnApiDelegate::Options& options,
|
D | nnapi_delegate_test.cc | 69 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 …]
|
D | nnapi_delegate_signed_quantization_test.cc | 45 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/ |
D | nnapi_delegate_jni.cc | 30 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/ |
D | nnapi_plugin.h | 38 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_;
|
D | nnapi_plugin_test.cc | 143 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()
|
D | configuration.proto | 101 // tflite::StatefulNnApiDelegate
|
/external/tensorflow/tensorflow/lite/tools/delegates/ |
D | nnapi_delegate_provider.cc | 102 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/ |
D | nnapi_plugin.cc | 34 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/ |
D | utils.cc | 108 TfLiteDelegatePtr CreateNNAPIDelegate(StatefulNnApiDelegate::Options options) { in CreateNNAPIDelegate() 111 new StatefulNnApiDelegate(options), [](TfLiteDelegate* delegate) { in CreateNNAPIDelegate() 112 delete reinterpret_cast<StatefulNnApiDelegate*>(delegate); in CreateNNAPIDelegate()
|
D | utils.h | 72 TfLiteDelegatePtr CreateNNAPIDelegate(StatefulNnApiDelegate::Options options);
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | label_image.cc | 144 StatefulNnApiDelegate::Options options; in GetDelegates()
|
/external/tensorflow/ |
D | RELEASE.md | 656 …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.
|