Skip to content

Commit dad0d63

Browse files
committed
Pipeline the pooling functions
1 parent c81f736 commit dad0d63

File tree

2 files changed

+237
-222
lines changed

2 files changed

+237
-222
lines changed

hls4ml/backends/vivado/passes/pooling_templates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
static const unsigned stride_width = {stride_width};
1919
static const nnet::Pool_Op pool_op = nnet::{pool_op};
2020
static const nnet::conv_implementation implementation = nnet::conv_implementation::{implementation};
21-
static const unsigned reuse = {reuse};
21+
static const unsigned reuse_factor = {reuse};
2222
typedef {accum_t.name} accum_t;
2323
}};\n"""
2424

@@ -43,15 +43,15 @@
4343
static const unsigned pad_right = {pad_right};
4444
static const nnet::Pool_Op pool_op = nnet::{pool_op};
4545
static const nnet::conv_implementation implementation = nnet::conv_implementation::{implementation};
46-
static const unsigned reuse = {reuse};
46+
static const unsigned reuse_factor = {reuse};
4747
typedef {accum_t.name} accum_t;
4848
}};\n"""
4949

5050
global_pooling1d_config_template = """struct config{index} : nnet::pooling1d_config {{
5151
static const unsigned n_in = {n_in};
5252
static const unsigned n_filt = {n_filt};
5353
static const nnet::Pool_Op pool_op = nnet::{pool_op};
54-
static const unsigned reuse = {reuse};
54+
static const unsigned reuse_factor = {reuse};
5555
typedef {accum_t.name} accum_t;
5656
}};\n"""
5757

@@ -60,7 +60,7 @@
6060
static const unsigned in_width = {in_width};
6161
static const unsigned n_filt = {n_filt};
6262
static const nnet::Pool_Op pool_op = nnet::{pool_op};
63-
static const unsigned reuse = {reuse};
63+
static const unsigned reuse_factor = {reuse};
6464
typedef {accum_t.name} accum_t;
6565
}};\n"""
6666

0 commit comments

Comments
 (0)