From d2afd62a5bd68109d33cc988ed537ab27c77dd84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=98=A4=ED=98=95=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Mon, 3 Sep 2018 13:43:18 +0900 Subject: [PATCH] [neurun] Comment out unreachable code (#2552) Comment out unreachable code in cpu kernel to avoid svace warning Signed-off-by: Hyeongseok Oh --- runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc | 2 +- runtimes/neurun/src/kernel/cpu/ConcatLayer.cc | 2 +- runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc | 2 +- runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc | 2 +- runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc | 2 +- runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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(); } } -- 2.7.4