Skip to content

Commit 1002f3e

Browse files
jmitrevsvloncar
authored andcommitted
add a default weight_size
1 parent 529f9e9 commit 1002f3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hls4ml/writer/quartus_writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def print_array_to_cpp(self, var, layer, odir):
7777
rf = int(layer.get_attr('reuse_factor', 1))
7878
weight_header = '#ifdef __INTELFPGA_COMPILER__\n'
7979

80+
weight_size = 0
8081
if isinstance(layer, (Conv2D, Conv2DBatchnorm)):
8182
weight_size = (
8283
layer.get_attr('impl_filt_height')

0 commit comments

Comments
 (0)