From dd78c8fe41ad9597d2a8610e46d8357e0d4e491b Mon Sep 17 00:00:00 2001
From: auphelia <jakobapk@web.de>
Date: Fri, 10 Jan 2020 10:46:53 +0000
Subject: [PATCH] [Code Generation - IP] Fixed some style issues

---
 .../fpgadataflow/streamingfclayer_batch.py          | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
index 6dd55b463..8d3d063c7 100644
--- a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
+++ b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
@@ -516,20 +516,17 @@ class StreamingFCLayer_Batch(HLSCustomOp):
             "#pragma HLS INTERFACE ap_ctrl_none port=return"
         )
         self.code_gen_dict["$PRAGMAS$"].append(
-            """DO_PRAGMA(HLS ARRAY_PARTITION
-            variable=weights complete dim=1)"""
+            "DO_PRAGMA(HLS ARRAY_PARTITION variable=weights complete dim=1)"
         )
+
         self.code_gen_dict["$PRAGMAS$"].append(
-            """DO_PRAGMA(HLS ARRAY_PARTITION
-            variable=weights complete dim=2)"""
+            "DO_PRAGMA(HLS ARRAY_PARTITION variable=weights complete dim=2)"
         )
         if self.calc_tmem() != 0:
             # TODO find a better way of checking for no pregenerated thresholds
             self.code_gen_dict["$PRAGMAS$"].append(
-                """DO_PRAGMA(HLS ARRAY_PARTITION
-                variable=threshs complete dim=1)"""
+                "DO_PRAGMA(HLS ARRAY_PARTITION variable=threshs complete dim=1)"
             )
             self.code_gen_dict["$PRAGMAS$"].append(
-                """DO_PRAGMA(HLS ARRAY_PARTITION
-                variable=threshs complete dim=3)"""
+                "DO_PRAGMA(HLS ARRAY_PARTITION variable=threshs complete dim=3)"
             )
-- 
GitLab