From cdfb918da2ab99c1610a175648f61874870df95c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 25 Jan 2019 09:40:39 +0900 Subject: [PATCH] [neurun] Move Model class to `model` (#4303) Move Model class to `model` from `graph` since `Model` represents pure neural network primitive elements. Signed-off-by: Hanjoung Lee --- runtimes/neurun/src/graph/Graph.h | 4 ++-- runtimes/neurun/src/{graph => model}/Model.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename runtimes/neurun/src/{graph => model}/Model.h (87%) diff --git a/runtimes/neurun/src/graph/Graph.h b/runtimes/neurun/src/graph/Graph.h index edf6b2d..d93a4a7 100644 --- a/runtimes/neurun/src/graph/Graph.h +++ b/runtimes/neurun/src/graph/Graph.h @@ -20,7 +20,7 @@ #include #include "model/operation/Node.h" -#include "graph/Model.h" +#include "model/Model.h" namespace neurun { @@ -132,7 +132,7 @@ public: private: Phase _phase{Phase::BUILDING}; - std::unique_ptr _model{new Model}; + std::unique_ptr _model{new model::Model}; // For LOWERED phase public: diff --git a/runtimes/neurun/src/graph/Model.h b/runtimes/neurun/src/model/Model.h similarity index 87% rename from runtimes/neurun/src/graph/Model.h rename to runtimes/neurun/src/model/Model.h index 20bb713..10d7c98 100644 --- a/runtimes/neurun/src/graph/Model.h +++ b/runtimes/neurun/src/model/Model.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef __NEURUN_GRAPH_MODEL_H__ -#define __NEURUN_GRAPH_MODEL_H__ +#ifndef __NEURUN_MODEL_MODEL_H__ +#define __NEURUN_MODEL_MODEL_H__ #include "model/operation/Set.h" #include "model/operand/IndexSet.h" @@ -23,7 +23,7 @@ namespace neurun { -namespace graph +namespace model { struct Model @@ -34,7 +34,7 @@ struct Model model::operand::IndexSet outputs; }; -} // namespace graph +} // namespace model } // namespace neurun -#endif // __NEURUN_GRAPH_MODEL_H__ +#endif // __NEURUN_MODEL_MODEL_H__ -- 2.7.4