Skip to content

Commit a7536b4

Browse files
author
Quentin Berthet
committed
Define multiplier_limit in nnet::conv1d_config (for sepconv1d)
1 parent ded4139 commit a7536b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hls4ml/backends/vivado/passes/convolution_templates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
static const unsigned out_width = {out_width};
4242
static const unsigned reuse_factor = {reuse};
4343
static const unsigned n_zeros = {nzeros};
44+
static const unsigned multiplier_limit =
45+
DIV_ROUNDUP(kernel_size * n_chan * n_filt, reuse_factor) - n_zeros / reuse_factor;
4446
static const bool store_weights_in_bram = false;
4547
static const unsigned strategy = nnet::{strategy};
4648
static const nnet::conv_implementation implementation = nnet::conv_implementation::{implementation};

0 commit comments

Comments
 (0)