From 88845109d97e8f0c47193748c5d712ba6f22a0fb Mon Sep 17 00:00:00 2001 From: auphelia Date: Fri, 17 Nov 2023 11:03:40 +0000 Subject: [PATCH] [Floorplan] Fix incorrect break and indent --- src/finn/transformation/fpgadataflow/floorplan.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/finn/transformation/fpgadataflow/floorplan.py b/src/finn/transformation/fpgadataflow/floorplan.py index d43aabcf55..336b3f80d0 100644 --- a/src/finn/transformation/fpgadataflow/floorplan.py +++ b/src/finn/transformation/fpgadataflow/floorplan.py @@ -170,12 +170,11 @@ def apply(self, model): else: partition_id = pre_inst.get_nodeattr("partition_id") node_inst.set_nodeattr("partition_id", partition_id) - break - else: - # no matching, new partition - node_inst.set_nodeattr("partition_id", partition_cnt) - partition_cnt += 1 + else: + # no matching, new partition + node_inst.set_nodeattr("partition_id", partition_cnt) + partition_cnt += 1 # save the updated floorplan floorplan = model.analysis(floorplan_params)