From 632ead62e015854440e93b4e2f2291e13431f8f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9E=A5=EC=A7=80=EC=84=AD/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 5 Aug 2019 13:42:25 +0900 Subject: [PATCH] Change the way getting layout of node in PermutationInsertionPass (#6148) This commit changes the way getting layout of node in PermuttationInsertionPass from model::Subgraph to operation::LowerInfo. Signed-off-by: jiseob.jang --- runtimes/neurun/core/src/graph/pass/PermutationInsertionPass.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/neurun/core/src/graph/pass/PermutationInsertionPass.cc b/runtimes/neurun/core/src/graph/pass/PermutationInsertionPass.cc index 447857c..b27ab05 100644 --- a/runtimes/neurun/core/src/graph/pass/PermutationInsertionPass.cc +++ b/runtimes/neurun/core/src/graph/pass/PermutationInsertionPass.cc @@ -89,7 +89,7 @@ void PermutationInsertionPass::callback(const model::OperandIndex &index, model: auto subg_index = _graph.subgraphs().getOperation(use); auto subg_li = _graph.getLowerInfo(subg_index); assert(subg_li); - const auto subg_layout = _graph.subgraphs().at(subg_index).getLayout(); + const auto subg_layout = subg_li->layout(); const backend::Backend *backend = subg_li->backend(); assert(backend); auto use_node_inputs = operation.getInputs(); -- 2.7.4