Home
last modified time | relevance | path

Searched refs:nnapi_settings (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dnnapi_plugin.h64 const NNAPISettings* nnapi_settings = tflite_settings.nnapi_settings(); in NnapiPlugin() local
65 if (!nnapi_settings) return; in NnapiPlugin()
66 if (nnapi_settings->accelerator_name() && in NnapiPlugin()
67 nnapi_settings->accelerator_name()->Length() != 0) { in NnapiPlugin()
68 accelerator_ = nnapi_settings->accelerator_name()->str(); in NnapiPlugin()
71 if (nnapi_settings->cache_directory() && in NnapiPlugin()
72 nnapi_settings->cache_directory()->Length() != 0) { in NnapiPlugin()
73 cache_dir_ = nnapi_settings->cache_directory()->str(); in NnapiPlugin()
76 if (nnapi_settings->model_token() && in NnapiPlugin()
77 nnapi_settings->model_token()->Length() != 0) { in NnapiPlugin()
[all …]
Dflatbuffer_to_proto_test.cc47 settings_.tflite_settings->nnapi_settings = in CheckNNAPIExecutionPreference()
49 settings_.tflite_settings->nnapi_settings->execution_preference = input; in CheckNNAPIExecutionPreference()
53 compute.tflite_settings().nnapi_settings().execution_preference()); in CheckNNAPIExecutionPreference()
58 settings_.tflite_settings->nnapi_settings = in CheckNNAPIExecutionPriority()
60 settings_.tflite_settings->nnapi_settings->execution_priority = input; in CheckNNAPIExecutionPriority()
63 compute.tflite_settings().nnapi_settings().execution_priority()); in CheckNNAPIExecutionPriority()
109 settings_.tflite_settings->nnapi_settings = in TEST_F()
112 settings_.tflite_settings->nnapi_settings.get(); in TEST_F()
120 compute.tflite_settings().nnapi_settings(); in TEST_F()
135 output_settings = compute.tflite_settings().nnapi_settings(); in TEST_F()
[all …]
Dnnapi_plugin_test.cc116 void CreateDelegate(flatbuffers::Offset<NNAPISettings> nnapi_settings) { in CreateDelegate() argument
119 CreateTFLiteSettings(fbb_, tflite::Delegate_NNAPI, nnapi_settings)); in CreateDelegate()
278 void CreateDelegate(flatbuffers::Offset<NNAPISettings> nnapi_settings, in CreateDelegate() argument
282 CreateTFLiteSettings(fbb_, tflite::Delegate_NNAPI, nnapi_settings, in CreateDelegate()
Dconfiguration_generated.h1983 std::unique_ptr<tflite::NNAPISettingsT> nnapi_settings{};
2020 const tflite::NNAPISettings *nnapi_settings() const { in nnapi_settings() function
2057 verifier.VerifyTable(nnapi_settings()) && in Verify()
2090 void add_nnapi_settings(flatbuffers::Offset<tflite::NNAPISettings> nnapi_settings) { in add_nnapi_settings()
2091 fbb_.AddOffset(TFLiteSettings::VT_NNAPI_SETTINGS, nnapi_settings); in add_nnapi_settings()
2137 flatbuffers::Offset<tflite::NNAPISettings> nnapi_settings = 0,
2158 builder_.add_nnapi_settings(nnapi_settings);
3885 …((lhs.nnapi_settings == rhs.nnapi_settings) || (lhs.nnapi_settings && rhs.nnapi_settings && *lhs.n…
3905nnapi_settings((o.nnapi_settings) ? new tflite::NNAPISettingsT(*o.nnapi_settings) : nullptr), in TFLiteSettingsT()
3920 std::swap(nnapi_settings, o.nnapi_settings);
[all …]
Dflatbuffer_to_proto.cc346 if (settings.nnapi_settings() != nullptr) { in ConvertTfliteSettings()
348 ConvertNNAPISettings(*settings.nnapi_settings()); in ConvertTfliteSettings()
Dproto_to_flatbuffer.cc345 ConvertNNAPISettings(settings.nnapi_settings(), builder), in ConvertTfliteSettings()
Dconfiguration.proto455 optional NNAPISettings nnapi_settings = 2; field
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/c/
Dnnapi_plugin_test.cc34 flatbuffers::Offset<NNAPISettings> nnapi_settings = in SetUp() local
39 tflite_settings_builder.add_nnapi_settings(nnapi_settings); in SetUp()
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/
Dvalidator_runner_entrypoint.cc50 if (tflite_settings.nnapi_settings && !nnapi_sl_path.empty()) { in RunValidator()
59 tflite_settings.nnapi_settings->support_library_handle = in RunValidator()
Dvalidator_runner_entrypoint_test.cc142 NNAPISettingsT nnapi_settings; in TEST_F() local
149 CreateNNAPISettings(fbb, &nnapi_settings)), in TEST_F()
Dmini_benchmark_implementation.cc465 setting_to_test->nnapi_settings() && in GetNnApiSlPointerIfPresent()
466 setting_to_test->nnapi_settings()->support_library_handle()) { in GetNnApiSlPointerIfPresent()
469 setting_to_test->nnapi_settings()->support_library_handle()); in GetNnApiSlPointerIfPresent()
/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/native/
Dnnapi_delegate_impl_jni.cc118 flatbuffers::Offset<NNAPISettings> nnapi_settings = in Java_org_tensorflow_lite_nnapi_NnApiDelegateImpl_createDelegate() local
121 tflite_settings_builder.add_nnapi_settings(nnapi_settings); in Java_org_tensorflow_lite_nnapi_NnApiDelegateImpl_createDelegate()