From: 오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 3 Sep 2018 04:43:18 +0000 (+0900) Subject: [neurun] Comment out unreachable code (#2552) X-Git-Tag: 0.2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2afd62a5bd68109d33cc988ed537ab27c77dd84;p=platform%2Fcore%2Fml%2Fnnfw.git [neurun] Comment out unreachable code (#2552) Comment out unreachable code in cpu kernel to avoid svace warning Signed-off-by: Hyeongseok Oh --- diff --git a/runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc b/runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc index 8068e72..e5e118c 100644 --- a/runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc @@ -98,7 +98,7 @@ void AvgPoolLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"AvgPoolLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - averagePoolQuant8(); + // averagePoolQuant8(); } } diff --git a/runtimes/neurun/src/kernel/cpu/ConcatLayer.cc b/runtimes/neurun/src/kernel/cpu/ConcatLayer.cc index 7b701e6..5c2c207 100644 --- a/runtimes/neurun/src/kernel/cpu/ConcatLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/ConcatLayer.cc @@ -93,7 +93,7 @@ void ConcatLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"ConcatLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - concatenationQuant8(); + // concatenationQuant8(); } } diff --git a/runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc b/runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc index 0323f2f..8524eee 100644 --- a/runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc @@ -166,7 +166,7 @@ void ConvolutionLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"ConvolutionLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - convQuant8(); + // convQuant8(); } } diff --git a/runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc b/runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc index 927a511..a43811e 100644 --- a/runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc @@ -122,7 +122,7 @@ void FullyConnectedLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"FullyConnectedLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - fullyConnectedQuant8(); + // fullyConnectedQuant8(); } } diff --git a/runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc b/runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc index 586047c..e40974e 100644 --- a/runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc @@ -82,7 +82,7 @@ void MaxPoolLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"MaxPoolLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - maxPoolQuant8(); + // maxPoolQuant8(); } } diff --git a/runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc b/runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc index f8d1d72..5c3e82e 100644 --- a/runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc +++ b/runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc @@ -96,7 +96,7 @@ void SoftMaxLayer::run() else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM) { throw std::runtime_error{"SoftMaxLayer : Not tested for TENSOR_QUANT8_ASYMM"}; - softmaxQuant8(); + // softmaxQuant8(); } }