From 80cf80ef12324d8cfa92b75ae5b5a08870f87867 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: Mon, 25 Feb 2019 16:26:30 +0900 Subject: [PATCH] [neurun] Remove unnecessary code in Graph::lower (#4486) Now that lower info is created just above, we do not need to clear the containers manually. Signed-off-by: Hanjoung Lee --- runtimes/neurun/src/graph/Graph.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/runtimes/neurun/src/graph/Graph.cc b/runtimes/neurun/src/graph/Graph.cc index ccc3d36..706941f 100644 --- a/runtimes/neurun/src/graph/Graph.cc +++ b/runtimes/neurun/src/graph/Graph.cc @@ -105,11 +105,6 @@ void Graph::lower(void) _backend_resolver = nnfw::cpp14::make_unique(_model->operands); _lower_info_map = nnfw::cpp14::make_unique(); - // NOTE This is a workaround when `lower` is called many times - // TODO Introduce a class that represents Lowered Graph - _lower_info_map->operation.clear(); - _lower_info_map->operand.clear(); - _model->operations.iterate( [&](const model::operation::Index &index, model::operation::Node &node) { auto backend = _backend_resolver->getBackend(typeid(node)); -- 2.7.4