We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff86c26 commit 20ed996Copy full SHA for 20ed996
hls4ml/backends/fpga/passes/codegen.py
@@ -67,7 +67,7 @@ def match(self, node):
67
weights_transposed = node.get_attr('_weights_transposed', False)
68
69
# RF = 1 will optimize DSPs anyway, so no need to unroll code
70
- rf_gt_one = node.get_attr('reuse_factor') > 1
+ rf_gt_one = node.get_attr('reuse_factor', 1) > 1
71
72
# User requested unrolled implementation of Dense
73
is_unrolled = node.get_attr('dense_resource_implementation', 'standard') == 'unrolled'
0 commit comments