[exo-tflite] renaming TFLConverter to CanonicalNodeConverter (#7152)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Wed, 4 Sep 2019 07:26:55 +0000 (16:26 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Wed, 4 Sep 2019 07:26:55 +0000 (16:26 +0900)
TFLConverter was renamed to CanonicalNodeConverter, meaning "convert caninical node to TFL node"

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.cpp [moved from compiler/exo-tflite/src/Conversion/TFLConverter.cpp with 84% similarity]
compiler/exo-tflite/src/Conversion/CanonicalNodeConverter.h [moved from compiler/exo-tflite/src/Conversion/TFLConverter.h with 80% similarity]

@@ -13,7 +13,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include "TFLConverter.h"
+
+#include "CanonicalNodeConverter.h"
 
 #include <loco.h>
 #include <loco/IR/CanonicalDialect.h>
@@ -21,7 +22,8 @@
 namespace exo
 {
 
-template <typename CanonicalType> bool TFLConverter<CanonicalType>::run(loco::Graph *graph)
+template <typename CanonicalType>
+bool CanonicalNodeConverter<CanonicalType>::run(loco::Graph *graph)
 {
   auto active_nodes = loco::active_nodes(loco::output_nodes(graph));
   bool changed = false;
@@ -44,6 +46,6 @@ template <typename CanonicalType> bool TFLConverter<CanonicalType>::run(loco::Gr
 
 // Add template instantiation of subclasses
 // E.g.,
-// template bool TFLConverter<loco::AvgPool2D>::run(loco::Graph *graph);
+// template bool CanonicalNodeConverter<loco::AvgPool2D>::run(loco::Graph *graph);
 
 } // namespace exo
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#ifndef __CONVERSION_TFLCONVERTER_H__
-#define __CONVERSION_TFLCONVERTER_H__
+#ifndef __CONVERSION_CANONICAL_NODE_CONVERTER_H__
+#define __CONVERSION_CANONICAL_NODE_CONVERTER_H__
 
 #include "Convert.h"
 
@@ -28,7 +28,7 @@ namespace exo
 /**
  * @brief Class to convert a canonical node to TFL node
  */
-template <typename CanonicalType> class TFLConverter : public logo::Pass
+template <typename CanonicalType> class CanonicalNodeConverter : public logo::Pass
 {
 public:
   virtual const char *name(void) const { return nullptr; }
@@ -42,4 +42,4 @@ protected:
 
 } // namespace exo
 
-#endif //__CONVERSION_TFLCONVERTER_H__
+#endif //__CONVERSION_CANONICAL_NODE_CONVERTER_H__