From f45b2cb6590b633b4dd1567326ae4eb1c455d93e Mon Sep 17 00:00:00 2001 From: Lucian Petrica <lucianp@xilinx.com> Date: Mon, 19 Oct 2020 18:43:27 +0000 Subject: [PATCH] Fixed numInWords for DWC --- .../custom_op/fpgadataflow/streamingdatawidthconverter_batch.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py index 23a906882..b4035f7fd 100644 --- a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py +++ b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py @@ -217,8 +217,6 @@ class StreamingDataWidthConverter_Batch(HLSCustomOp): numInWords = int(np.prod(self.get_folded_input_shape()[:-1])) inWidth = self.get_nodeattr("inWidth") outWidth = self.get_nodeattr("outWidth") - if outWidth > inWidth: - numInWords = int(outWidth // inWidth) self.code_gen_dict["$DEFINES$"] = [ "#define InWidth %d " % inWidth, "#define OutWidth %d " % outWidth, -- GitLab