This commit fixes to handle `Graph::lower` is called multiple times.
Fix #4258
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
_backend_resolver = nnfw::cpp14::make_unique<compiler::BackendResolver>(_model->operands);
+ // NOTE This is a workaround when `lower` is called many times
+ // TODO Introduce a class that represents Lowered Graph
+ _operation_lower_info.clear();
+ _operand_lower_info.clear();
+
_model->operations.iterate(
[&](const model::operation::Index &index, model::operation::Node &node) {
auto backend = _backend_resolver->getBackend(typeid(node));