From c2f9b93fa2a9f1725b131c7bb13bdbf01797bc0d Mon Sep 17 00:00:00 2001
From: Lucian Petrica <lucianp@xilinx.com>
Date: Fri, 4 Sep 2020 18:49:12 +0000
Subject: [PATCH] Using list tiling instead of np.tile to avoid conversion to
 float

---
 src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
index ee4990897..75be2bec8 100644
--- a/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
+++ b/src/finn/custom_op/fpgadataflow/streamingfclayer_batch.py
@@ -745,7 +745,7 @@ class StreamingFCLayer_Batch(HLSCustomOp):
                 )
                 num_w_reps = np.prod(self.get_nodeattr("numInputVectors"))
                 io_dict = {
-                    "inputs": {"in0": inp, "weights": np.tile(wei, num_w_reps)},
+                    "inputs": {"in0": inp, "weights": wei*num_w_reps},
                     "outputs": {"out": []},
                 }
                 self.rtlsim_multi_io(sim, io_dict)
-- 
GitLab