[neurun] Comment out unreachable code (#2552)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 3 Sep 2018 04:43:18 +0000 (13:43 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 3 Sep 2018 04:43:18 +0000 (13:43 +0900)
Comment out unreachable code in cpu kernel to avoid svace warning

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/src/kernel/cpu/AvgPoolLayer.cc
runtimes/neurun/src/kernel/cpu/ConcatLayer.cc
runtimes/neurun/src/kernel/cpu/ConvolutionLayer.cc
runtimes/neurun/src/kernel/cpu/FullyConnectedLayer.cc
runtimes/neurun/src/kernel/cpu/MaxPoolLayer.cc
runtimes/neurun/src/kernel/cpu/SoftMaxLayer.cc

index 8068e72..e5e118c 100644 (file)
@@ -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();
   }
 }
 
index 7b701e6..5c2c207 100644 (file)
@@ -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();
   }
 }
 
index 0323f2f..8524eee 100644 (file)
@@ -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();
   }
 }
 
index 927a511..a43811e 100644 (file)
@@ -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();
   }
 }
 
index 586047c..e40974e 100644 (file)
@@ -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();
   }
 }
 
index f8d1d72..5c3e82e 100644 (file)
@@ -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();
   }
 }