[api] added newly implemented layer enum
authorhyeonseok lee <hs89.lee@samsung.com>
Thu, 25 Aug 2022 14:41:52 +0000 (23:41 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 1 Sep 2022 06:37:23 +0000 (15:37 +0900)
 - Added newly implemented layer enum to nntrainer-api-common.h

Signed-off-by: hyeonseok lee <hs89.lee@samsung.com>
api/nntrainer-api-common.h

index 578fa13880c3c41614dedb568a39fb24a242554c..0d0fe003f1638249fcd7b7ad31c396ca19eca311 100644 (file)
@@ -53,6 +53,15 @@ typedef enum {
   ML_TRAIN_LAYER_TYPE_RNNCELL = 22,  /**< RNN Cell Layer type (Since 7.0) */
   ML_TRAIN_LAYER_TYPE_ZONEOUTLSTMCELL =
     23, /**< ZoneoutLSTM Cell Layer type (Since 7.0) */
+  ML_TRAIN_LAYER_TYPE_ATTENTION = 24, /**< Attention Layer type (Since 7.0) */
+  ML_TRAIN_LAYER_TYPE_MOL_ATTENTION =
+    25, /**< MoL Attention Layer type (Since 7.0) */
+  ML_TRAIN_LAYER_TYPE_MULTI_HEAD_ATTENTION =
+    26, /**< Multi Head Attention Layer type (Since 7.0) */
+  ML_TRAIN_LAYER_TYPE_LAYER_NORMALIZATION =
+    27, /**< Layer Normalization Layer type (Since 7.0) */
+  ML_TRAIN_LAYER_TYPE_POSITIONAL_ENCODING =
+    28, /**< Positional Encoding Layer type (Since 7.0) */
   ML_TRAIN_LAYER_TYPE_PREPROCESS_FLIP =
     300, /**< Preprocess flip Layer (Since 6.5) */
   ML_TRAIN_LAYER_TYPE_PREPROCESS_TRANSLATE =