[neurun] Add runtime error for no tested quant8 cpu kernels (#2475)
author김수진/동작제어Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Mon, 27 Aug 2018 04:24:45 +0000 (13:24 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 27 Aug 2018 04:24:45 +0000 (13:24 +0900)
This commit adds runtime error for no tested quant8 cpu kernels.

Signed-off-by: sjsujinkim <sjsujin.kim@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 2cdd5b8..8068e72 100644 (file)
@@ -97,6 +97,7 @@ void AvgPoolLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"AvgPoolLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     averagePoolQuant8();
   }
 }
index 45c2c04..7b701e6 100644 (file)
@@ -92,6 +92,7 @@ void ConcatLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"ConcatLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     concatenationQuant8();
   }
 }
index 29a22cb..0323f2f 100644 (file)
@@ -165,6 +165,7 @@ void ConvolutionLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"ConvolutionLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     convQuant8();
   }
 }
index 4fc124e..927a511 100644 (file)
@@ -121,6 +121,7 @@ void FullyConnectedLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"FullyConnectedLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     fullyConnectedQuant8();
   }
 }
index d40275e..586047c 100644 (file)
@@ -81,6 +81,7 @@ void MaxPoolLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"MaxPoolLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     maxPoolQuant8();
   }
 }
index 8d594f2..f8d1d72 100644 (file)
@@ -95,6 +95,7 @@ void SoftMaxLayer::run()
   }
   else if (_inputType == OperandType::TENSOR_QUANT8_ASYMM)
   {
+    throw std::runtime_error{"SoftMaxLayer : Not tested for TENSOR_QUANT8_ASYMM"};
     softmaxQuant8();
   }
 }