From b59e8519f2bfa0cef884870db62c0b0cda80a4e0 Mon Sep 17 00:00:00 2001 From: mmrahorovic Date: Mon, 25 Mar 2024 11:37:51 +0000 Subject: [PATCH 1/2] [transform]: remove resType selection of VVAU --- src/finn/transformation/fpgadataflow/convert_to_hw_layers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/finn/transformation/fpgadataflow/convert_to_hw_layers.py b/src/finn/transformation/fpgadataflow/convert_to_hw_layers.py index e2f638ed62..897d714bf8 100644 --- a/src/finn/transformation/fpgadataflow/convert_to_hw_layers.py +++ b/src/finn/transformation/fpgadataflow/convert_to_hw_layers.py @@ -1644,7 +1644,6 @@ def apply(self, model): [mt_output], domain="finn.custom_op.fpgadataflow", backend="fpgadataflow", - resType="lut", PE=pe, Dim=[mm_in_shape[1], mm_in_shape[2]], Channels=channels, @@ -1673,7 +1672,6 @@ def apply(self, model): [mm_output], domain="finn.custom_op.fpgadataflow", backend="fpgadataflow", - resType="lut", PE=pe, Dim=[mm_in_shape[1], mm_in_shape[2]], Channels=channels, From e8ae3c44eaf91d93ee298c00e71d68b4fdaa645b Mon Sep 17 00:00:00 2001 From: mmrahorovic Date: Mon, 25 Mar 2024 11:38:07 +0000 Subject: [PATCH 2/2] [tests]: renamed VectorVectorActivation to VVAU --- tests/fpgadataflow/test_depthwise_convolution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fpgadataflow/test_depthwise_convolution.py b/tests/fpgadataflow/test_depthwise_convolution.py index bde5e918e3..24bc2f3afe 100644 --- a/tests/fpgadataflow/test_depthwise_convolution.py +++ b/tests/fpgadataflow/test_depthwise_convolution.py @@ -190,7 +190,7 @@ def test_depthwise_conv_hw_cppsim(act, pe, k, stride, padding): if n.op_type.startswith("ConvolutionInputGenerator"): convinputgen_node = getCustomOp(n) convinputgen_node.set_nodeattr("SIMD", pe) - elif n.op_type.startswith("VectorVectorActivation"): + elif n.op_type.startswith("VVAU"): vvau_node = getCustomOp(n) vvau_node.set_nodeattr("PE", pe) new_model = new_model.transform(SetExecMode("cppsim")) @@ -235,7 +235,7 @@ def test_depthwise_conv_hw_rtlsim(act, pe, k, stride, padding): if n.op_type.startswith("ConvolutionInputGenerator"): convinputgen_node = getCustomOp(n) convinputgen_node.set_nodeattr("SIMD", pe) - elif n.op_type.startswith("VectorVectorActivation"): + elif n.op_type.startswith("VVAU"): vvau_node = getCustomOp(n) vvau_node.set_nodeattr("PE", pe)