Skip to content

Commit d1d1e3e

Browse files
small changeup to data storage in conv1d parallel
1 parent 6073263 commit d1d1e3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hls4ml/templates/vivado/nnet_utils/nnet_conv1dtranspose_resource.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void conv_1d_transpose_resource_cl(
150150
for (unsigned i_res = 0; i_res < mult_n_out; i_res++) {
151151
#pragma HLS UNROLL
152152

153-
res[(output_index-CONFIG_T::pad_left)*CONFIG_T::n_filt + i_res] = cast<data_T, res_T, typename CONFIG_T::mult_config>(acc[i_pxl][i_res][i_sw]);
153+
// res[(output_index-CONFIG_T::pad_left)*CONFIG_T::n_filt + i_res]
154+
*(res++) = cast<data_T, res_T, typename CONFIG_T::mult_config>(acc[i_pxl][i_res][i_sw]);
154155
}
155156
}
156157
}

0 commit comments

Comments
 (0)