Skip to content

Commit 12ba91e

Browse files
fix output to conv1d transpose resource
1 parent e738f73 commit 12ba91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hls4ml/templates/vivado/nnet_utils/nnet_conv1dtranspose_resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ 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][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] = cast<data_T, res_T, typename CONFIG_T::mult_config>(acc[i_pxl][i_res][i_sw]);
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)