File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,12 @@ void pointwise_conv_1d_latency_cl(data_T data[CONFIG_T::in_width * CONFIG_T::n_c
127127 (ii * CONFIG_T::stride_width) >= (CONFIG_T::pad_left + CONFIG_T::in_width)) {
128128 mult[index_mult] = 0 ;
129129 } else {
130- mult[index_mult] = CONFIG_T::template product<data_T, typename CONFIG_T::weight_t >::product (data[index_data], weights[index_weight]);
130+ mult[index_mult] = CONFIG_T::template product<data_T, typename CONFIG_T::weight_t >::product (
131+ data[index_data], weights[index_weight]);
131132 }
132133 } // end channel loop
133- } // end filter loop
134- } // end output loop
134+ } // end filter loop
135+ } // end output loop
135136
136137 // Initialize accumulator with input biases
137138 for (int ii = 0 ; ii < CONFIG_T::out_width / CONFIG_T::reuse_factor; ii++) {
@@ -152,8 +153,8 @@ void pointwise_conv_1d_latency_cl(data_T data[CONFIG_T::in_width * CONFIG_T::n_c
152153 int index_mult = ii * CONFIG_T::n_filt * CONFIG_T::n_chan + ff * CONFIG_T::n_chan + cc;
153154 acc[ii][ff] += mult[index_mult];
154155 } // end channel loop
155- } // end filter loop
156- } // end output loop
156+ } // end filter loop
157+ } // end output loop
157158
158159 // Cast to "res_t" type
159160 for (int ii = 0 ; ii < CONFIG_T::out_width / CONFIG_T::reuse_factor; ii++) {
Original file line number Diff line number Diff line change @@ -126,11 +126,12 @@ void pointwise_conv_1d_latency_cl(data_T data[CONFIG_T::in_width * CONFIG_T::n_c
126126 (ii * CONFIG_T::stride_width) >= (CONFIG_T::pad_left + CONFIG_T::in_width)) {
127127 mult[index_mult] = 0 ;
128128 } else {
129- mult[index_mult] = CONFIG_T::template product<data_T, typename CONFIG_T::weight_t >::product (data[index_data], weights[index_weight]);
129+ mult[index_mult] = CONFIG_T::template product<data_T, typename CONFIG_T::weight_t >::product (
130+ data[index_data], weights[index_weight]);
130131 }
131132 } // end channel loop
132- } // end filter loop
133- } // end output loop
133+ } // end filter loop
134+ } // end output loop
134135
135136 // Initialize accumulator with input biases
136137 for (int ii = 0 ; ii < CONFIG_T::out_width / CONFIG_T::reuse_factor; ii++) {
@@ -151,8 +152,8 @@ void pointwise_conv_1d_latency_cl(data_T data[CONFIG_T::in_width * CONFIG_T::n_c
151152 int index_mult = ii * CONFIG_T::n_filt * CONFIG_T::n_chan + ff * CONFIG_T::n_chan + cc;
152153 acc[ii][ff] += mult[index_mult];
153154 } // end channel loop
154- } // end filter loop
155- } // end output loop
155+ } // end filter loop
156+ } // end output loop
156157
157158 // Cast to "res_t" type
158159 for (int ii = 0 ; ii < CONFIG_T::out_width / CONFIG_T::reuse_factor; ii++) {
You can’t perform that action at this time.
0 commit comments