Skip to content

Commit 483eeca

Browse files
jmitrevsvloncar
authored andcommitted
fix pragmas messed up by pre-commit
1 parent a04e5b8 commit 483eeca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hls4ml/templates/vitis/nnet_utils/nnet_pooling.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ void pooling2d_cl(data_T data[CONFIG_T::in_height * CONFIG_T::in_width * CONFIG_
198198

199199
// TODO partition the arrays according to the reuse factor
200200
const int limit = pool_op_limit<CONFIG_T>();
201-
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_height*CONFIG_T::pool_width,
202-
// CONFIG_T::pool_op> limit=limit
201+
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_height*CONFIG_T::pool_width, \
202+
CONFIG_T::pool_op> limit=limit
203203
// Add any necessary padding
204204
unsigned padded_height = CONFIG_T::in_height + CONFIG_T::pad_top + CONFIG_T::pad_bottom;
205205
unsigned padded_width = CONFIG_T::in_width + CONFIG_T::pad_left + CONFIG_T::pad_right;
@@ -255,8 +255,8 @@ void pooling2d_cf(data_T data[CONFIG_T::in_height * CONFIG_T::in_width * CONFIG_
255255

256256
// TODO partition the arrays according to the reuse factor
257257
const int limit = pool_op_limit<CONFIG_T>();
258-
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_height*CONFIG_T::pool_width,
259-
// CONFIG_T::pool_op> limit=limit
258+
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_height*CONFIG_T::pool_width, \
259+
CONFIG_T::pool_op> limit=limit
260260
// Add any necessary padding
261261
unsigned padded_height = CONFIG_T::in_height + CONFIG_T::pad_top + CONFIG_T::pad_bottom;
262262
unsigned padded_width = CONFIG_T::in_width + CONFIG_T::pad_left + CONFIG_T::pad_right;
@@ -317,8 +317,8 @@ void global_pooling2d_cl(data_T data[CONFIG_T::in_height * CONFIG_T::in_width *
317317
#pragma HLS PIPELINE II=CONFIG_T::reuse_factor
318318

319319
const int limit = pool_op_limit<CONFIG_T>();
320-
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_width * CONFIG_T::pool_height,
321-
// CONFIG_T::pool_op> limit=limit
320+
#pragma HLS ALLOCATION function instances=pool_op<data_T, CONFIG_T::pool_width * CONFIG_T::pool_height, \
321+
CONFIG_T::pool_op> limit=limit
322322

323323
FiltLoop:
324324
for (int filt = 0; filt < CONFIG_T::n_filt; filt++) {

0 commit comments

Comments
 (0)