Skip to content

Commit 20ed996

Browse files
committed
Fix failing PyTests
1 parent ff86c26 commit 20ed996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls4ml/backends/fpga/passes/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def match(self, node):
6767
weights_transposed = node.get_attr('_weights_transposed', False)
6868

6969
# RF = 1 will optimize DSPs anyway, so no need to unroll code
70-
rf_gt_one = node.get_attr('reuse_factor') > 1
70+
rf_gt_one = node.get_attr('reuse_factor', 1) > 1
7171

7272
# User requested unrolled implementation of Dense
7373
is_unrolled = node.get_attr('dense_resource_implementation', 'standard') == 'unrolled'

0 commit comments

Comments
 (0)