[exo-tflite] Rename existing Pad class (#7388)
author채성우/On-Device Lab(SR)/Engineer/삼성전자 <sw4670.chae@samsung.com>
Wed, 11 Sep 2019 08:05:36 +0000 (17:05 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 11 Sep 2019 08:05:36 +0000 (17:05 +0900)
This commit is for renaming existing Pad class in exo-tflite.

Related: #7357

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
compiler/exo-tflite/src/ExporterUtils.cpp
compiler/exo-tflite/src/ExporterUtils.h
compiler/exo-tflite/src/LogHelper.cpp
compiler/exo-tflite/src/LogHelper.h

index d001cef..84143d7 100644 (file)
@@ -134,7 +134,7 @@ uint32_t SerializedModelData::registerCustomOpcode(const std::string &custom_op)
   return idx;
 }
 
-tflite::Padding getOpPadding(const loco::Pad<2> *pad)
+tflite::Padding getOpPadding(const loco::Padding2D *pad)
 {
   // VALID padding
   if (pad->top() == 0 && pad->bottom() == 0 && pad->left() == 0 && pad->right() == 0)
index cf61785..fedaaaa 100644 (file)
@@ -104,7 +104,7 @@ template <> inline bool isNHWC(loco::Permutation<loco::Domain::Filter> *perm)
          perm->axis(loco::FilterAxis::Width) == 2 && perm->axis(loco::FilterAxis::Depth) == 3;
 }
 
-tflite::Padding getOpPadding(const loco::Pad<2> *pad);
+tflite::Padding getOpPadding(const loco::Padding2D *pad);
 
 /// @brief Register graph input and output names to SerializedModelData
 void registerGraphIOName(loco::Graph *graph, SerializedModelData &gd);
index 50377b8..7c2d6f9 100644 (file)
@@ -46,7 +46,7 @@ std::ostream &operator<<(std::ostream &os, const loco::TensorShape &tensor_shape
   return os;
 }
 
-std::ostream &operator<<(std::ostream &os, const loco::Pad<2> &pad)
+std::ostream &operator<<(std::ostream &os, const loco::Padding2D &pad)
 {
   os << "[TLBR " << pad.top() << "," << pad.left() << "," << pad.bottom() << "," << pad.right()
      << "]";
index e7ab6a1..69d81af 100644 (file)
@@ -45,9 +45,9 @@ std::ostream &operator<<(std::ostream &os, const loco::FilterShape &filter_shape
 std::ostream &operator<<(std::ostream &os, const loco::TensorShape &tensor_shape);
 
 /**
- * @brief dump Pad<2> values to stream
+ * @brief dump Padding2D values to stream
  */
-std::ostream &operator<<(std::ostream &os, const loco::Pad<2> &pad);
+std::ostream &operator<<(std::ostream &os, const loco::Padding2D &pad);
 
 } // namespace loco