[tflchef] Add ReLU6 in activation (#2312)
author남궁석/동작제어Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Fri, 16 Nov 2018 02:06:49 +0000 (11:06 +0900)
committer박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 16 Nov 2018 02:06:49 +0000 (11:06 +0900)
This commit will add ReLU6 in activation

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
contrib/tflchef/core/src/Convert.cpp
contrib/tflchef/proto/tflchef.proto

index 6b0d3e9..7adddef 100644 (file)
@@ -41,6 +41,8 @@ tflite::ActivationFunctionType as_tflite_activation(const tflchef::Activation &v
     return tflite::ActivationFunctionType_NONE;
   case tflchef::RELU:
     return tflite::ActivationFunctionType_RELU;
+  case tflchef::RELU6:
+    return tflite::ActivationFunctionType_RELU6;
   default:
     break;
   }
index 77c2cb2..af1d253 100644 (file)
@@ -34,6 +34,7 @@ enum Padding {
 enum Activation {
   NONE = 0;
   RELU = 1;
+  RELU6 = 3;
 }
 
 message Conv2DOptions