[exo] renaming a method to a bit more detaild name (#8478)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Fri, 25 Oct 2019 07:51:25 +0000 (16:51 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 25 Oct 2019 07:51:25 +0000 (16:51 +0900)
This renames `create_fused_bias()` to `create_fused_bias_const()`.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo/src/Pass/FuseBiasAddPass.cpp

index e50a447..db4aa1f 100644 (file)
@@ -136,12 +136,13 @@ private:
   locoex::TFLConst *_const_node;
   locoex::TFLConv2D *_conv2d_node;
 
-  locoex::TFLConst *create_fused_bias();
+  locoex::TFLConst *create_fused_bias_const();
 };
 
-template <typename TFLType> locoex::TFLConst *Fuser<TFLType>::create_fused_bias()
+template <typename TFLType> locoex::TFLConst *Fuser<TFLType>::create_fused_bias_const()
 {
-  // we have to create a new bias by adding/substracting bias and const node (of TFLAdd or TFLSub)
+  // we have to create a new bias const by adding/substracting bias and const node (of TFLAdd or
+  // TFLSub)
   auto bias = dynamic_cast<locoex::TFLConst *>(_conv2d_node->bias());
   assert(bias->dtype() == loco::DataType::FLOAT32 &&
          _const_node->dtype() == loco::DataType::FLOAT32);
@@ -149,7 +150,7 @@ template <typename TFLType> locoex::TFLConst *Fuser<TFLType>::create_fused_bias(
   assert(bias->rank() == 1 && _const_node->rank() == 1);
   assert(bias->dim(0) == _const_node->dim(0));
 
-  // build a new bias
+  // build a new bias const
   auto new_bias = _graph->nodes()->create<locoex::TFLConst>();
   {
     new_bias->dtype(loco::DataType::FLOAT32);
@@ -198,7 +199,7 @@ template <typename TFLType> void Fuser<TFLType>::fuse(void)
     act_func<TFLType>(_conv2d_node, _fusable_node);
   }
 
-  auto new_bias = create_fused_bias();
+  auto new_bias = create_fused_bias_const();
 
   // replace node with new_bias
   // note that loco::replace() is not used because bias could be input of other op just in case