Minor naming change

This commit is contained in:
Fabio Di Domenico 2020-03-18 06:24:49 +02:00
parent b97023504c
commit 98cfe32972
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ TfLiteInterpreter* TfLiteInterpreterCreate(
}
if (optional_options) {
interpreter->UseNNAPI(optional_options->useNNAPI);
interpreter->UseNNAPI(optional_options->use_nnapi);
if (optional_options->num_threads !=
TfLiteInterpreterOptions::kDefaultNumThreads) {

View File

@ -52,7 +52,7 @@ void TfLiteInterpreterOptionsAddCustomOp(TfLiteInterpreterOptions* options,
void TfLiteInterpreterOptionsSetUseNNAPI(TfLiteInterpreterOptions* options,
bool enable) {
options->useNNAPI = enable;
options->use_nnapi = enable;
}
#ifdef __cplusplus

View File

@ -50,7 +50,7 @@ struct TfLiteInterpreterOptions {
std::vector<TfLiteDelegate*> delegates;
bool useNNAPI = false;
bool use_nnapi = false;
};
struct TfLiteInterpreter {