[moco-tf] remove ModelMetainfo.proto (#5940)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Mon, 29 Jul 2019 00:09:56 +0000 (09:09 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Mon, 29 Jul 2019 00:09:56 +0000 (09:09 +0900)
This file, a schema for user input, is now moved into tf2tflite.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/moco-tf/proto/CMakeLists.txt
compiler/moco-tf/proto/ModelMetainfo.proto [deleted file]

index a507498..2053a68 100644 (file)
@@ -20,17 +20,3 @@ add_library(moco_tf_proto STATIC ${GRAPHDEF_PROTO_SOURCES})
 set_target_properties(moco_tf_proto PROPERTIES POSITION_INDEPENDENT_CODE ON)
 target_include_directories(moco_tf_proto PUBLIC ${GRAPHDEF_PROTO_INCLUDE_DIRS})
 target_link_libraries(moco_tf_proto PUBLIC libprotobuf)
-
-# handling ModelMetainfo.proto
-unset(PROTO_FILES)
-list(APPEND PROTO_FILES ModelMetainfo.proto)
-
-Protobuf_Generate(MODEL_META_PROTO
-                  "${CMAKE_CURRENT_BINARY_DIR}/generated"
-                  "./"
-                  ${PROTO_FILES})
-
-add_library(moco_tf_model_metainfo_proto STATIC ${MODEL_META_PROTO_SOURCES})
-set_target_properties(moco_tf_model_metainfo_proto PROPERTIES POSITION_INDEPENDENT_CODE ON)
-target_include_directories(moco_tf_model_metainfo_proto PUBLIC ${MODEL_META_PROTO_INCLUDE_DIRS})
-target_link_libraries(moco_tf_model_metainfo_proto PUBLIC libprotobuf)
diff --git a/compiler/moco-tf/proto/ModelMetainfo.proto b/compiler/moco-tf/proto/ModelMetainfo.proto
deleted file mode 100644 (file)
index 9bf0d33..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-syntax = "proto3";
-
- package moco;
-option cc_enable_arenas = true;
-
- /* example of prototxt file
-     custom_op {
-      name: "my/customOp/000"
-      op: "new_custom_op"
-      attr {
-        key: "output_shape"
-        value {
-          shape {
-            dim { size: 1 }
-            dim { size: 2 }
-            dim { size: 1 }
-            dim { size: 2 }
-          }
-        }
-      }
-    }
-*/
-
- message ShapeProto {
-  message Dim {
-    int64 size = 1; // tensorflow uses int64
-  };
-
-   repeated Dim dim = 2;
-}
-
- message AttrValue {
-  oneof value {
-    ShapeProto shape = 1;
-  }
-}
-
- message CustomOpDef {
-  string name = 1;
-  string op = 2;
-  map<string, AttrValue> attr = 3;
-}
-
- message ModelMetaDef {
-  repeated CustomOpDef custom_op = 1;
-}