From 3e1535387414e61ab81772915cef22352294c457 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=84=B8=ED=9D=AC/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Principal=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 6 Dec 2018 14:53:43 +0900 Subject: [PATCH] [enco] frontend/caffe: Introduce GraphBuilder (#2530) This will introduce GraphBuilder class as a base for layer imports Signed-off-by: SaeHie Park --- contrib/enco/frontend/caffe/src/GraphBuilder.cpp | 21 ++++++++++++++ contrib/enco/frontend/caffe/src/GraphBuilder.h | 36 ++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 contrib/enco/frontend/caffe/src/GraphBuilder.cpp create mode 100644 contrib/enco/frontend/caffe/src/GraphBuilder.h diff --git a/contrib/enco/frontend/caffe/src/GraphBuilder.cpp b/contrib/enco/frontend/caffe/src/GraphBuilder.cpp new file mode 100644 index 0000000..18ba10c --- /dev/null +++ b/contrib/enco/frontend/caffe/src/GraphBuilder.cpp @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @note: This cpp file exist to check compilation integrity + */ + +#include "GraphBuilder.h" diff --git a/contrib/enco/frontend/caffe/src/GraphBuilder.h b/contrib/enco/frontend/caffe/src/GraphBuilder.h new file mode 100644 index 0000000..04adb96 --- /dev/null +++ b/contrib/enco/frontend/caffe/src/GraphBuilder.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __GRAPH_BUILDER_H__ +#define __GRAPH_BUILDER_H__ + +#include "Context.h" + +#include + +namespace caffeimport +{ + +class GraphBuilder +{ +public: + virtual void build(const ::caffe::LayerParameter &layer, GraphBuilderContext *context) const = 0; + virtual ~GraphBuilder() {} +}; + +} // namespace caffeimport + +#endif // __GRAPH_BUILDER_H__ -- 2.7.4