The flatten_realizer.cpp and activation_realizer.cpp declare
the same local variable. However, the actual code order was
written differently. Minor modifications were made for code
consistency.
Signed-off-by: SeoHyungjun <hyungjun.seo@samsung.com>
std::string /**< layer_name */>
recovery_table;
std::vector<LayerNode *> act_nodes;
+
for (auto &node : reference) {
processed.push_back(node);
if (node->getType() == ActivationLayer::type) {
std::unordered_map<std::string /**< layer_name */,
std::string /**< flatten_layer_name */>
remap_table;
- std::vector<LayerNode *> flatten_nodes;
std::unordered_map<std::string /**< temp_layer_name */,
std::string /**< layer_name */>
recovery_table;
+ std::vector<LayerNode *> flatten_nodes;
for (auto &node : reference) {
/// @note: [node] type=flatten; flatten=true; is awkward but allowed.