From c32d03d402748469230f4235cb1152d2115c9c5b 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: Tue, 7 May 2019 13:44:44 +0900 Subject: [PATCH] Merge Lowered and Subgraph section in Graph (#5122) Subgraph is also part of LOWERED phase so we should not distinguish these members. Signed-off-by: Hanjoung Lee --- runtimes/neurun/core/include/graph/Graph.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/runtimes/neurun/core/include/graph/Graph.h b/runtimes/neurun/core/include/graph/Graph.h index 81e06a1..ddf461a 100644 --- a/runtimes/neurun/core/include/graph/Graph.h +++ b/runtimes/neurun/core/include/graph/Graph.h @@ -159,13 +159,6 @@ public: operand::LowerInfo *getLowerInfo(const model::OperandIndex &index); void setLowerInfo(const model::OperandIndex &index, std::unique_ptr &&lower_info); - -private: - std::unique_ptr _backend_resolver; - std::unique_ptr _lower_info_map; - - // For Subgraph -public: model::operation::SubgraphContext &subg_ctx() { assert(_subg_ctx); @@ -174,6 +167,8 @@ public: const model::operation::SubgraphContext *subg_ctx() const { return _subg_ctx.get(); } private: + std::unique_ptr _backend_resolver; + std::unique_ptr _lower_info_map; // Pass(for Perm) can accept only graph so that Graph has SubgraphContext as a member std::unique_ptr _subg_ctx; }; -- 2.7.4