Skip to content

Commit 4a35623

Browse files
committed
Allow 'parallelization_factor' propagation from dense layer
1 parent b7664b7 commit 4a35623

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hls4ml/model/optimizer/passes/multi_dense.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def transform(self, model, node):
2727
'bias_data': node.get_attr('bias_data'),
2828
}
2929

30+
if (pf := node.get_attr('parallelization_factor', None)) is not None:
31+
pointwise_attrs['parallelization_factor'] = pf
32+
3033
if dim == 1:
3134
pointwise_attrs.update(
3235
{

0 commit comments

Comments
 (0)