[Fix] Reorder error in layernode
authorJihoon Lee <jhoon.it.lee@samsung.com>
Thu, 29 Apr 2021 03:50:37 +0000 (12:50 +0900)
committergichan-jang <56856496+gichan-jang@users.noreply.github.com>
Thu, 29 Apr 2021 08:14:39 +0000 (17:14 +0900)
This patch fixes trivial build warning which is treated as error.

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/layers/layer_node.h

index e3085cf..4fee32b 100644 (file)
@@ -30,10 +30,10 @@ public:
    *
    */
   LayerNode(std::shared_ptr<nntrainer::Layer> l, size_t idx) :
-    activation_type(ActivationType::ACT_NONE),
-    flatten(false),
     layer(l),
-    index(idx) {}
+    index(idx),
+    flatten(false),
+    activation_type(ActivationType::ACT_NONE) {}
 
   /**
    * @brief     Destructor of LayerNode Class