Minor naming change
This commit is contained in:
parent
b97023504c
commit
98cfe32972
@ -123,7 +123,7 @@ TfLiteInterpreter* TfLiteInterpreterCreate(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (optional_options) {
|
if (optional_options) {
|
||||||
interpreter->UseNNAPI(optional_options->useNNAPI);
|
interpreter->UseNNAPI(optional_options->use_nnapi);
|
||||||
|
|
||||||
if (optional_options->num_threads !=
|
if (optional_options->num_threads !=
|
||||||
TfLiteInterpreterOptions::kDefaultNumThreads) {
|
TfLiteInterpreterOptions::kDefaultNumThreads) {
|
||||||
|
@ -52,7 +52,7 @@ void TfLiteInterpreterOptionsAddCustomOp(TfLiteInterpreterOptions* options,
|
|||||||
|
|
||||||
void TfLiteInterpreterOptionsSetUseNNAPI(TfLiteInterpreterOptions* options,
|
void TfLiteInterpreterOptionsSetUseNNAPI(TfLiteInterpreterOptions* options,
|
||||||
bool enable) {
|
bool enable) {
|
||||||
options->useNNAPI = enable;
|
options->use_nnapi = enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -50,7 +50,7 @@ struct TfLiteInterpreterOptions {
|
|||||||
|
|
||||||
std::vector<TfLiteDelegate*> delegates;
|
std::vector<TfLiteDelegate*> delegates;
|
||||||
|
|
||||||
bool useNNAPI = false;
|
bool use_nnapi = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TfLiteInterpreter {
|
struct TfLiteInterpreter {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user