[tf2tflite] Use moco namespace types not alias (#8680)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Fri, 1 Nov 2019 01:54:20 +0000 (10:54 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 1 Nov 2019 01:54:20 +0000 (10:54 +0900)
This will update to not to use alias moco::tf namespace

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
compiler/tf2tflite/src/CustomopConfLoader.cpp
compiler/tf2tflite/src/CustomopConfLoader.h
compiler/tf2tflite/src/Driver.cpp

index 726b066..7399a43 100644 (file)
@@ -96,7 +96,7 @@ angkor::TensorShape get_shape_attr(const tf2tflite::CustomOpDef &custom_op)
   return convert_shape(shape_def);
 }
 
-void add_customop(tf2tflite::CustomOpInfoDef &def, moco::tf::ModelSignature &sig)
+void add_customop(tf2tflite::CustomOpInfoDef &def, moco::ModelSignature &sig)
 {
   for (const auto &custom_op : def.custom_op())
   {
@@ -115,7 +115,7 @@ void add_customop(tf2tflite::CustomOpInfoDef &def, moco::tf::ModelSignature &sig
 namespace tf2tflite
 {
 
-void load_customop_conf(const std::string &path, moco::tf::ModelSignature &sig)
+void load_customop_conf(const std::string &path, moco::ModelSignature &sig)
 {
   CustomOpInfoDef def;
 
index da3ab3d..4f5f3a6 100644 (file)
@@ -25,7 +25,7 @@ namespace tf2tflite
 {
 
 /// @brief Loads customop.conf into ModelSignature
-void load_customop_conf(const std::string &path, moco::tf::ModelSignature &sig);
+void load_customop_conf(const std::string &path, moco::ModelSignature &sig);
 
 } // namespace tf2tflite
 
index bdefed4..e43d30b 100644 (file)
@@ -39,7 +39,7 @@
 namespace
 {
 
-std::unique_ptr<loco::Graph> import(const moco::tf::ModelSignature &sig, const std::string &path)
+std::unique_ptr<loco::Graph> import(const moco::ModelSignature &sig, const std::string &path)
 {
   moco::tf::Frontend frontend;
   return frontend.load(sig, path.c_str(), moco::tf::Frontend::FileType::Binary);
@@ -115,19 +115,19 @@ int main(int argc, char **argv)
 
   std::cout << "Read '" << info_path << "'" << std::endl;
 
-  moco::tf::ModelSignature sig;
+  moco::ModelSignature sig;
   {
     for (const auto &info : nnkit::support::tftestinfo::parse(info_path.c_str()))
     {
       switch (info->kind())
       {
         case nnkit::support::tftestinfo::ParsedTensor::Kind::Input:
-          sig.add_input(moco::tf::TensorName{info->name()});
+          sig.add_input(moco::TensorName{info->name()});
           sig.shape(info->name(), info->shape());
           break;
 
         case nnkit::support::tftestinfo::ParsedTensor::Kind::Output:
-          sig.add_output(moco::tf::TensorName{info->name()});
+          sig.add_output(moco::TensorName{info->name()});
           sig.shape(info->name(), info->shape());
           break;