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

Related: #7357

Signed-off-by: seongwoo <sw4670.chae@samsung.com>
compiler/moco-tf/src/Annotations/PadData.h
compiler/moco-tf/src/Annotations/PaddingData.h
compiler/moco-tf/src/LogHelper.cpp
compiler/moco-tf/src/LogHelper.h

index 7c4f934..887a1c5 100644 (file)
@@ -30,7 +30,7 @@ namespace tf
  * @note  This holds the same pad attribute that exist in Canonical Conv2D
  *        to simplify Canonicalizing step of TFConv2D to Conv2D conversion.
  *        Values of 'pad' will be calculated in FixPaddingTransformation.
- *        PadData holds Pad<2> where PaddingData holds 'padding' as a string.
+ *        PadData holds Padding2D where PaddingData holds 'padding' as a string.
  */
 class PadData : public loco::NodeAnnotation
 {
@@ -38,11 +38,11 @@ public:
   PadData() = default;
 
 public:
-  const loco::Pad<2> *pad(void) const { return &_pad; }
-  loco::Pad<2> *pad(void) { return &_pad; }
+  const loco::Padding2D *pad(void) const { return &_pad; }
+  loco::Padding2D *pad(void) { return &_pad; }
 
 private:
-  loco::Pad<2> _pad;
+  loco::Padding2D _pad;
 };
 
 } // namespace tf
index ff52df4..e875cca 100644 (file)
@@ -30,7 +30,7 @@ namespace tf
  * @brief PaddingData holds temporary padding attribute
  *
  * @note  Related nodes are AvgPool2D, MaxPool2D, Conv2D and maybe others
- *        PaddingData holds 'padding' as a string where PadData holds Pad<2>
+ *        PaddingData holds 'padding' as a string where PadData holds Padding2D
  */
 class PaddingData : public loco::NodeAnnotation
 {
index e7b1bb7..1a38eb7 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 809ab7b..fc60f9f 100644 (file)
@@ -47,9 +47,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