From: 이한종/On-Device Lab(SR)/Engineer/삼성전자 Date: Tue, 7 May 2019 04:44:44 +0000 (+0900) Subject: Merge Lowered and Subgraph section in Graph (#5122) X-Git-Tag: submit/tizen/20190809.050447~834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c32d03d402748469230f4235cb1152d2115c9c5b;p=platform%2Fcore%2Fml%2Fnnfw.git 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 --- 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; };