Searched refs:model_token (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/native/ |
D | nnapi_delegate_jni.cc | 27 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/ |
D | nnapi_plugin.h | 66 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()
|
D | configuration_generated.h | 575 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 …]
|
D | proto_to_flatbuffer.cc | 157 /*model_token=*/builder->CreateString(settings.model_token()), in ConvertNNAPISettings()
|
D | configuration.proto | 103 optional string model_token = 3; field
|
/external/tensorflow/tensorflow/lite/delegates/nnapi/ |
D | nnapi_delegate.h | 76 const char* model_token = nullptr; member 222 std::string model_token; member
|
D | nnapi_delegate.cc | 3657 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()
|
D | nnapi_delegate_test.cc | 381 options.model_token = "NNAPIDelegate.StatefulDelegateWithCompilationCaching"; in TEST()
|