Lines Matching +full:- +full:oc
3 // This source code is licensed under the BSD-style license found in the
6 #include "convolution-test-helpers.h"
52 for (size_t oc = 0; oc < group_output_channels; oc++) { in compute_convolution_qs8_reference_results() local
53 …ators[(((i * output_height + oy) * output_width + ox) * groups + g) * group_output_channels + oc] = in compute_convolution_qs8_reference_results()
54 bias[g * group_output_channels + oc]; in compute_convolution_qs8_reference_results()
60 const size_t iy = oy * subsampling_height + ky * dilation_height - input_padding_top; in compute_convolution_qs8_reference_results()
63 const size_t ix = ox * subsampling_width + kx * dilation_width - input_padding_left; in compute_convolution_qs8_reference_results()
66 for (size_t oc = 0; oc < group_output_channels; oc++) { in compute_convolution_qs8_reference_results() local
68 …tors[(((i * output_height + oy) * output_width + ox) * groups + g) * group_output_channels + oc] += in compute_convolution_qs8_reference_results()
70 g * group_input_channels + ic]) - in compute_convolution_qs8_reference_results()
72 …int32_t(filter[(((g * group_output_channels + oc) * kernel_height + ky) * kernel_width + kx) * gro… in compute_convolution_qs8_reference_results()
177 for (size_t oc = 0; oc < group_output_channels; oc++) { in compute_convolution_qu8_reference_results() local
178 …ators[(((i * output_height + oy) * output_width + ox) * groups + g) * group_output_channels + oc] = in compute_convolution_qu8_reference_results()
179 bias[g * group_output_channels + oc]; in compute_convolution_qu8_reference_results()
185 const size_t iy = oy * subsampling_height + ky * dilation_height - input_padding_top; in compute_convolution_qu8_reference_results()
188 const size_t ix = ox * subsampling_width + kx * dilation_width - input_padding_left; in compute_convolution_qu8_reference_results()
191 for (size_t oc = 0; oc < group_output_channels; oc++) { in compute_convolution_qu8_reference_results() local
193 …tors[(((i * output_height + oy) * output_width + ox) * groups + g) * group_output_channels + oc] += in compute_convolution_qu8_reference_results()
194 …* input_height + iy) * input_width + ix) * input_channel_stride + g * group_input_channels + ic]) - in compute_convolution_qu8_reference_results()
196 …ilter[(((g * group_output_channels + oc) * kernel_height + ky) * kernel_width + kx) * group_input_… in compute_convolution_qu8_reference_results()
301 for (size_t oc = 0; oc < depth_multiplier; oc++) { in compute_depthwise_convolution_qs8_reference_results() local
302 …rs[(((i * output_height + oy) * output_width + ox) * input_channels + g) * depth_multiplier + oc] = in compute_depthwise_convolution_qs8_reference_results()
303 bias[g * depth_multiplier + oc]; in compute_depthwise_convolution_qs8_reference_results()
309 const size_t iy = oy * subsampling_height + ky * dilation_height - input_padding_top; in compute_depthwise_convolution_qs8_reference_results()
312 const size_t ix = ox * subsampling_width + kx * dilation_width - input_padding_left; in compute_depthwise_convolution_qs8_reference_results()
315 for (size_t oc = 0; oc < depth_multiplier; oc++) { in compute_depthwise_convolution_qs8_reference_results() local
316 …s[(((i * output_height + oy) * output_width + ox) * input_channels + g) * depth_multiplier + oc] += in compute_depthwise_convolution_qs8_reference_results()
317 …t[((i * input_height + iy) * input_width + ix) * input_channel_stride + g]) - int32_t(input_zero_p… in compute_depthwise_convolution_qs8_reference_results()
318 … int32_t(filter[((ky * kernel_width + kx) * input_channels + g) * depth_multiplier + oc]); in compute_depthwise_convolution_qs8_reference_results()
419 for (size_t oc = 0; oc < depth_multiplier; oc++) { in compute_depthwise_convolution_qu8_reference_results() local
420 …rs[(((i * output_height + oy) * output_width + ox) * input_channels + g) * depth_multiplier + oc] = in compute_depthwise_convolution_qu8_reference_results()
421 bias[g * depth_multiplier + oc]; in compute_depthwise_convolution_qu8_reference_results()
427 const size_t iy = oy * subsampling_height + ky * dilation_height - input_padding_top; in compute_depthwise_convolution_qu8_reference_results()
430 const size_t ix = ox * subsampling_width + kx * dilation_width - input_padding_left; in compute_depthwise_convolution_qu8_reference_results()
433 for (size_t oc = 0; oc < depth_multiplier; oc++) { in compute_depthwise_convolution_qu8_reference_results() local
434 …s[(((i * output_height + oy) * output_width + ox) * input_channels + g) * depth_multiplier + oc] += in compute_depthwise_convolution_qu8_reference_results()
435 …t[((i * input_height + iy) * input_width + ix) * input_channel_stride + g]) - int32_t(input_zero_p… in compute_depthwise_convolution_qu8_reference_results()
436 …ter[((ky * kernel_width + kx) * input_channels + g) * depth_multiplier + oc]) - int32_t(kernel_zer… in compute_depthwise_convolution_qu8_reference_results()