Home
last modified time | relevance | path

Searched refs:model_token (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/native/
Dnnapi_delegate_jni.cc27 jstring cache_dir, jstring model_token, jint max_delegated_partitions, in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate() argument
39 if (model_token) { in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
40 options.model_token = env->GetStringUTFChars(model_token, NULL); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
65 if (options.model_token) { in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
66 env->ReleaseStringUTFChars(model_token, options.accelerator_name); in Java_org_tensorflow_lite_nnapi_NnApiDelegate_createDelegate()
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dnnapi_plugin.h66 if (nnapi_settings->model_token() && in NnapiPlugin()
67 nnapi_settings->model_token()->Length() != 0) { in NnapiPlugin()
68 model_token_ = nnapi_settings->model_token()->str(); in NnapiPlugin()
69 options_.model_token = model_token_.c_str(); in NnapiPlugin()
Dconfiguration_generated.h575 std::string model_token; member
613 const flatbuffers::String *model_token() const { in model_token() function
644 verifier.VerifyString(model_token()) && in Verify()
669 void add_model_token(flatbuffers::Offset<flatbuffers::String> model_token) { in add_model_token()
670 fbb_.AddOffset(NNAPISettings::VT_MODEL_TOKEN, model_token); in add_model_token()
709 flatbuffers::Offset<flatbuffers::String> model_token = 0,
722 builder_.add_model_token(model_token);
735 const char *model_token = nullptr,
745 auto model_token__ = model_token ? _fbb.CreateString(model_token) : 0;
2169 { auto _e = model_token(); if (_e) _o->model_token = _e->str(); } in UnPackTo()
[all …]
Dproto_to_flatbuffer.cc157 /*model_token=*/builder->CreateString(settings.model_token()), in ConvertNNAPISettings()
Dconfiguration.proto103 optional string model_token = 3; field
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.h76 const char* model_token = nullptr; member
222 std::string model_token; member
Dnnapi_delegate.cc3657 const char* model_token = delegate_options.model_token; in Init() local
3659 model_token) { in Init()
3668 farmhash::Fingerprint64(model_token, std::strlen(model_token)); in Init()
4827 if (options.model_token) { in StatefulNnApiDelegate()
4828 delegate_data_.model_token = options.model_token; in StatefulNnApiDelegate()
4872 options.model_token = delegate_data->model_token.empty() in GetOptions()
4874 : delegate_data->model_token.c_str(); in GetOptions()
Dnnapi_delegate_test.cc381 options.model_token = "NNAPIDelegate.StatefulDelegateWithCompilationCaching"; in TEST()