From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Tue, 15 Jan 2019 01:05:49 +0000 (+0900) Subject: Fix nnapi delegate (#4240) X-Git-Tag: submit/tizen/20190325.013700~366 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7672b9a6e401f989156a1214df961ffdfbbb2ee;p=platform%2Fcore%2Fml%2Fnnfw.git Fix nnapi delegate (#4240) Fix nnapi delegate bug for gbs build Fix switch-case indent Signed-off-by: Hyeongseok Oh --- 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: