[capi] add identity layer to capi
authorhyeonseok lee <hs89.lee@samsung.com>
Mon, 17 Apr 2023 05:25:54 +0000 (14:25 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 18 Apr 2023 04:49:57 +0000 (13:49 +0900)
 - Added identity layer enum to capi

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

index cdf2a13..1998cd9 100644 (file)
@@ -73,6 +73,7 @@ enum LayerType {
   LAYER_POSITIONAL_ENCODING =
     ML_TRAIN_LAYER_TYPE_POSITIONAL_ENCODING, /**< Positional Encoding Layer type
                                               */
+  LAYER_IDENTITY = ML_TRAIN_LAYER_TYPE_IDENTITY, /**< Identity Layer type */
   LAYER_PREPROCESS_FLIP =
     ML_TRAIN_LAYER_TYPE_PREPROCESS_FLIP, /**< Preprocess flip Layer type */
   LAYER_PREPROCESS_TRANSLATE =
@@ -94,7 +95,6 @@ enum LayerType {
   LAYER_BACKBONE_TFLITE,          /**< Backbone using TFLite */
   LAYER_RESHAPE,                  /**< Reshape Layer type */
   LAYER_REDUCE_MEAN,              /**< Reduce mean Layer type */
-  LAYER_IDENTITY,                 /**< Identity Layer type */
   LAYER_LOSS_CONSTANT_DERIVATIVE, /**< Synthetic loss layer to feed constant
                                      derivative */
   LAYER_UNKNOWN = ML_TRAIN_LAYER_TYPE_UNKNOWN /**< Unknown */
index f91d3e4..4641e78 100644 (file)
@@ -62,6 +62,7 @@ typedef enum {
     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_IDENTITY = 29, /**< Identity Layer type (Since 7.5) */
   ML_TRAIN_LAYER_TYPE_PREPROCESS_FLIP =
     300, /**< Preprocess flip Layer (Since 6.5) */
   ML_TRAIN_LAYER_TYPE_PREPROCESS_TRANSLATE =