From b7672b9a6e401f989156a1214df961ffdfbbb2ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 15 Jan 2019 10:05:49 +0900 Subject: [PATCH] Fix nnapi delegate (#4240) Fix nnapi delegate bug for gbs build Fix switch-case indent Signed-off-by: Hyeongseok Oh --- libs/tflite/src/ext/nnapi_delegate.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/tflite/src/ext/nnapi_delegate.cpp b/libs/tflite/src/ext/nnapi_delegate.cpp index 40ecbf2..cb621fd 100644 --- a/libs/tflite/src/ext/nnapi_delegate.cpp +++ b/libs/tflite/src/ext/nnapi_delegate.cpp @@ -764,7 +764,7 @@ TfLiteStatus AddOpsAndParams( reinterpret_cast(node.outputs->data))); continue; #ifndef OBS_BUILD - case tflite::BuiltinOperator_PACK: + case tflite::BuiltinOperator_PACK: add_pack_ex_params(node.builtin_data); CHECK_NN(ANeuralNetworksModel_addOperationEx( nn_model, ANEURALNETWORKS_PACK_EX, @@ -780,7 +780,7 @@ TfLiteStatus AddOpsAndParams( augmented_inputs.data(), static_cast(node.outputs->size), reinterpret_cast(node.outputs->data))); continue; - case tflite::BuiltinOperator_SQRT: + case tflite::BuiltinOperator_SQRT: CHECK_NN(ANeuralNetworksModel_addOperationEx( nn_model, ANEURALNETWORKS_SQRT_EX, static_cast(augmented_inputs.size()), @@ -889,7 +889,9 @@ TfLiteStatus AddOpsAndParams( case tflite::BuiltinOperator_SELECT: case tflite::BuiltinOperator_SLICE: case tflite::BuiltinOperator_SIN: +#ifndef OBS_BUILD case tflite::BuiltinOperator_LOG: +#endif //case tflite::BuiltinOperator_TRANSPOSE_CONV: #ifndef OBS_BUILD case tflite::BuiltinOperator_TILE: -- 2.7.4