/external/XNNPACK/test/ |
D | f32-dwconv2d-chw.cc | 27 .kernel_width(3) in TEST() 43 .kernel_width(3) in TEST() 60 .kernel_width(3) in TEST() 77 .kernel_width(3) in TEST() 95 .kernel_width(3) in TEST() 115 .kernel_width(3) in TEST() 131 .kernel_width(3) in TEST() 148 .kernel_width(3) in TEST() 165 .kernel_width(3) in TEST() 183 .kernel_width(3) in TEST() [all …]
|
D | convolution-nhwc.cc | 888 .kernel_width(3) in TEST() 901 .kernel_width(3) in TEST() 915 .kernel_width(3) in TEST() 930 .kernel_width(3) in TEST() 944 .kernel_width(3) in TEST() 959 .kernel_width(3) in TEST() 974 .kernel_width(3) in TEST() 988 .kernel_width(3) in TEST() 1003 .kernel_width(3) in TEST() 1018 .kernel_width(3) in TEST() [all …]
|
D | dwconv2d-microkernel-tester.h | 113 inline DWConv2DMicrokernelTester& kernel_width(uint32_t kernel_width) { in kernel_width() function 114 assert(kernel_width != 0); in kernel_width() 115 this->kernel_width_ = kernel_width; in kernel_width() 119 inline uint32_t kernel_width() const { in kernel_width() function 124 return kernel_height() * kernel_width(); in kernel_size() 138 if (padded_input_width <= kernel_width()) { in output_width() 141 return (padded_input_width - kernel_width()) / subsampling() + 1; in output_width() 193 for (size_t kx = 0; kx < kernel_width(); kx++) { 197 const float kernel_val = packed_weights[1 + ky * kernel_width() + kx];
|
D | conv-hwc2chw-microkernel-tester.h | 178 inline ConvHWC2CHWMicrokernelTester& kernel_width(uint32_t kernel_width) { in kernel_width() argument 179 assert(kernel_width >= 1); in kernel_width() 180 this->kernel_width_ = kernel_width; in kernel_width() 184 inline uint32_t kernel_width() const { in kernel_width() function 256 if (padded_input_width < kernel_width()) { in output_width() 259 return (padded_input_width - kernel_width()) / subsampling_width() + 1; in output_width() 304 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels()); 308 …ator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_width() + 1) * packed… 321 kernel_height(), kernel_width(), 333 for (size_t kx = 0; kx < kernel_width(); kx++) { [all …]
|
D | conv-hwc-microkernel-tester.h | 178 inline ConvHWCMicrokernelTester& kernel_width(uint32_t kernel_width) { in kernel_width() argument 179 assert(kernel_width >= 1); in kernel_width() 180 this->kernel_width_ = kernel_width; in kernel_width() 184 inline uint32_t kernel_width() const { in kernel_width() function 253 …eturn (std::max<size_t>(padded_input_width + subsampling_width(), kernel_width()) - kernel_width()) in output_width() 298 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels()); 302 …ator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_width() + 1) * packed… 315 kernel_height(), kernel_width(), 327 for (size_t kx = 0; kx < kernel_width(); kx++) { 333 … kernel[((oc * kernel_height() + ky) * kernel_width() + kx) * input_channels() + ic];
|
D | deconvolution-nhwc.cc | 589 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { variable 593 .kernel_size(3, kernel_width) 880 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 884 .kernel_size(3, kernel_width) in TEST() 1189 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 1194 .kernel_size(3, kernel_width) in TEST() 1500 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 1505 .kernel_size(3, kernel_width) in TEST() 1804 .kernel_width(5) 1818 .kernel_width(5) [all …]
|
D | convolution-operator-tester.h | 221 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument 223 assert(kernel_width >= 1); in kernel_size() 225 this->kernel_width_ = kernel_width; in kernel_size() 239 inline ConvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() argument 240 assert(kernel_width >= 1); in kernel_width() 241 this->kernel_width_ = kernel_width; in kernel_width() 245 inline uint32_t kernel_width() const { in kernel_width() function 354 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width() 538 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestNHWCxQC8() 580 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestNHWCxQC8() [all …]
|
D | deconvolution-operator-tester.h | 185 inline DeconvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument 187 assert(kernel_width >= 1); in kernel_size() 189 this->kernel_width_ = kernel_width; in kernel_size() 203 inline DeconvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() argument 204 assert(kernel_width >= 1); in kernel_width() 205 this->kernel_width_ = kernel_width; in kernel_width() 209 inline uint32_t kernel_width() const { in kernel_width() function 318 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width() 436 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestQS8() 474 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestQS8() [all …]
|
/external/XNNPACK/tools/ |
D | generate-dwconv2d-chw-test.py | 227 kernel_height, kernel_width = int(match.group(2)), int(match.group(3)) 239 return kernel_height, kernel_width, stride, padding, arch, isa, \ 243 def generate_test_cases(ukernel, kernel_height, kernel_width, subsampling, \ argument 280 "KERNEL_WIDTH": kernel_width, 322 kernel_height, kernel_width, subsampling, padding, arch, isa, \ 328 test_case = generate_test_cases(name, kernel_height, kernel_width, \
|
/external/ComputeLibrary/src/runtime/NEON/functions/ |
D | NELocallyConnectedLayer.cpp | 47 const unsigned int kernel_width = weights->dimension(0); in calculate_shapes() local 55 … conv_h) = scaled_dimensions(input->dimension(0), input->dimension(1), kernel_width, kernel_height, in calculate_shapes() 99 const unsigned int kernel_width = weights->dimension(0); in validate() local 105 … conv_h) = scaled_dimensions(input->dimension(0), input->dimension(1), kernel_width, kernel_height, in validate() 121 …N_ERROR(NEIm2Col::validate(input, &input_im2col_reshaped_info, Size2D(kernel_width, kernel_height)… in validate() 138 const unsigned int kernel_width = weights->info()->dimension(0); in configure() local 144 …d_dimensions(input->info()->dimension(0), input->info()->dimension(1), kernel_width, kernel_height, in configure() 162 …_input_im2col.configure(input, &_input_im2col_reshaped, Size2D(kernel_width, kernel_height), conv_… in configure()
|
/external/XNNPACK/src/ |
D | im2col.c | 17 size_t kernel_width, in xnn_im2col_conv2d() argument 35 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_im2col_conv2d() 47 memset(output, 0, kernel_width * group_input_channels_in_bytes); in xnn_im2col_conv2d() 48 output = (void*) ((uintptr_t) output + kernel_width * group_input_channels_in_bytes); in xnn_im2col_conv2d()
|
D | indirection.c | 33 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_conv2d() local 43 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_conv2d() 56 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_conv2d() 58 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_conv2d() 68 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_conv2d() 69 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_conv2d() 93 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_deconv2d() local 103 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_deconv2d() 118 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_deconv2d() 121 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_deconv2d() [all …]
|
/external/XNNPACK/bench/ |
D | deconvolution.cc | 33 const size_t kernel_width = state.range(4); in xnnpack_deconvolution_qu8() local 50 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_deconvolution_qu8() 60 …std::vector<uint8_t> kernel(groups * group_output_channels * kernel_height * kernel_width * group_… in xnnpack_deconvolution_qu8() 81 kernel_height, kernel_width, in xnnpack_deconvolution_qu8() 142 kernel_height * kernel_width, in xnnpack_deconvolution_qu8() 152 const size_t kernel_width = state.range(4); in xnnpack_deconvolution_f32() local 168 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_deconvolution_f32() 178 …std::vector<float> kernel(groups * group_output_channels * kernel_height * kernel_width * group_in… in xnnpack_deconvolution_f32() 199 kernel_height, kernel_width, in xnnpack_deconvolution_f32() 259 kernel_height * kernel_width, in xnnpack_deconvolution_f32() [all …]
|
D | f32-im2col-gemm.cc | 37 const size_t kernel_width = state.range(3); in Im2ColGEMMBenchmark() local 38 const size_t kernel_size = kernel_height * kernel_width; in Im2ColGEMMBenchmark() 51 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in Im2ColGEMMBenchmark() 63 std::vector<float> k(group_output_channels * kernel_height * kernel_width * group_input_channels); in Im2ColGEMMBenchmark() 102 kernel_height, kernel_width, in Im2ColGEMMBenchmark() 135 kernel_height * kernel_width, in Im2ColGEMMBenchmark()
|
D | f16-dwconv.cc | 46 const size_t kernel_width = state.range(3); in DWConvBenchmark() local 53 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark() 65 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvBenchmark() 71 const size_t step_width = dilation == 1 ? subsampling : kernel_width; in DWConvBenchmark() 78 std::vector<uint16_t> k(channels * kernel_height * kernel_width); in DWConvBenchmark() 94 xnn_pack_f16_dwconv_ghw_w(kernel_height, kernel_width, channels, cr, in DWConvBenchmark() 111 convolution_op.kernel_width = kernel_width; in DWConvBenchmark()
|
D | convolution.cc | 46 const size_t kernel_width = state.range(4); in xnnpack_convolution_qu8() local 63 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_convolution_qu8() 73 …std::vector<uint8_t> kernel(groups * group_output_channels * kernel_height * kernel_width * group_… in xnnpack_convolution_qu8() 94 kernel_height, kernel_width, in xnnpack_convolution_qu8() 155 kernel_height * kernel_width, in xnnpack_convolution_qu8() 166 const size_t kernel_width = state.range(4); in xnnpack_convolution_qs8() local 184 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_convolution_qs8() 194 …std::vector<int8_t> kernel(groups * group_output_channels * kernel_height * kernel_width * group_i… in xnnpack_convolution_qs8() 215 kernel_height, kernel_width, in xnnpack_convolution_qs8() 275 kernel_height * kernel_width, in xnnpack_convolution_qs8() [all …]
|
D | f16-igemm.cc | 42 const size_t kernel_width = state.range(3); in IGEMMBenchmark() local 43 const size_t kernel_size = kernel_height * kernel_width; in IGEMMBenchmark() 59 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in IGEMMBenchmark() 72 …std::vector<uint16_t> k(group_output_channels * kernel_height * kernel_width * group_input_channel… in IGEMMBenchmark() 109 convolution_op.kernel_width = kernel_width; in IGEMMBenchmark() 159 kernel_height * kernel_width, in IGEMMBenchmark()
|
/external/ComputeLibrary/src/runtime/CL/functions/ |
D | CLLocallyConnectedLayer.cpp | 48 const unsigned int kernel_width = weights->dimension(0); in calculate_shapes() local 58 kernel_width, in calculate_shapes() 113 const unsigned int kernel_width = weights->dimension(0); in validate() local 119 … conv_h) = scaled_dimensions(input->dimension(0), input->dimension(1), kernel_width, kernel_height, in validate() 135 …R(CLIm2ColKernel::validate(input, &input_im2col_reshaped_info, Size2D(kernel_width, kernel_height)… in validate() 161 const unsigned int kernel_width = weights->info()->dimension(0); in configure() local 167 …d_dimensions(input->info()->dimension(0), input->info()->dimension(1), kernel_width, kernel_height, in configure() 185 …el->configure(compile_context, input, &_input_im2col_reshaped, Size2D(kernel_width, kernel_height)… in configure()
|
/external/ComputeLibrary/src/core/NEON/kernels/ |
D | NEIm2ColKernel.cpp | 101 int kernel_width, in linearize_volume_nchw() argument 113 const int kernel_size2 = kernel_width * kernel_height; in linearize_volume_nchw() 114 const int x_e = top_left_x + kernel_width * dilation_x; in linearize_volume_nchw() 166 memset(static_cast<void *>(out_ptr), pad_value, kernel_width * sizeof(T)); in linearize_volume_nchw() 167 out_ptr += kernel_width; in linearize_volume_nchw() 199 int kernel_width, in linearize_volume_nhwc() argument 210 const int end_x = start_x + kernel_width * dilation_x; in linearize_volume_nhwc() 212 const int pad_quant = kernel_width * input_c; in linearize_volume_nhwc() 219 …(in_ptr + (y * input_stride_z + start_x * input_stride_y)), input_c * kernel_width * element_size); in linearize_volume_nhwc() 220 out_ptr += input_c * kernel_width; in linearize_volume_nhwc() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | atrous_conv2d_test.py | 73 for kernel_width in range(1, 4): 74 f_shape = [kernel_height, kernel_width, 2, 2] 178 for kernel_width in range(1, 4): 179 f_shape = [kernel_height, kernel_width, 2, 2] 186 kernel_width_up = kernel_width + (kernel_width - 1) * (rate - 1) 218 for kernel_width in range(1, 4): 219 f_shape = [kernel_height, kernel_width, 2, 2]
|
/external/XNNPACK/src/operators/ |
D | convolution-nchw.c | 43 uint32_t kernel_width, in xnn_create_convolution2d_nchw_f32() argument 71 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_convolution2d_nchw_f32() 74 … xnn_operator_type_to_string(xnn_operator_type_convolution_nchw_f32), kernel_width, kernel_height); in xnn_create_convolution2d_nchw_f32() 174 …const bool is_1x1 = kernel_width == 1 && kernel_height == 1 && subsampling_height == 1 && subsampl… in xnn_create_convolution2d_nchw_f32() 175 …const bool is_3x3 = kernel_width == 3 && kernel_height == 3 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32() 176 …const bool is_5x5 = kernel_width == 5 && kernel_height == 5 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32() 215 …kernel_width, kernel_height, subsampling_width, subsampling_height, dilation_width, dilation_heigh… in xnn_create_convolution2d_nchw_f32() 235 assert(kernel_width == 1); in xnn_create_convolution2d_nchw_f32() 417 (group_input_channels * kernel_height * kernel_width + 1 /* bias */) * sizeof(float); in xnn_create_convolution2d_nchw_f32() 430 kernel_height, kernel_width, in xnn_create_convolution2d_nchw_f32() [all …]
|
D | deconvolution-nhwc.c | 46 uint32_t kernel_width, in create_deconvolution2d_nhwc() argument 85 if (kernel_width == 0 || kernel_height == 0) { in create_deconvolution2d_nhwc() 88 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_deconvolution2d_nhwc() 164 const uint32_t kernel_size = kernel_height * kernel_width; in create_deconvolution2d_nhwc() 167 …) > 1 && max(dilation_height, dilation_width) == 1 && stride_width <= kernel_width && stride_heigh… in create_deconvolution2d_nhwc() 186 const size_t subkernel_width = divide_round_up(kernel_width - offset_x, stride_width); in create_deconvolution2d_nhwc() 215 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in create_deconvolution2d_nhwc() 241 deconvolution_op->kernel_width = kernel_width; in create_deconvolution2d_nhwc() 280 uint32_t kernel_width, in xnn_create_deconvolution2d_nhwc_qs8() argument 350 kernel_height, kernel_width, in xnn_create_deconvolution2d_nhwc_qs8() [all …]
|
D | convolution-nhwc.c | 69 uint32_t kernel_width, in create_convolution2d_nhwc() argument 134 if (kernel_width == 0 || kernel_height == 0) { in create_convolution2d_nhwc() 137 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_convolution2d_nhwc() 226 const size_t kernel_size = kernel_height * kernel_width; in create_convolution2d_nhwc() 290 kernel_height, kernel_width, in create_convolution2d_nhwc() 297 kernel_height, kernel_width, in create_convolution2d_nhwc() 451 convolution_op->kernel_width = kernel_width; in create_convolution2d_nhwc() 485 uint32_t kernel_width, in xnn_create_convolution2d_nhwc_qu8() argument 560 …find_dwconv_ukernel(kernel_height * kernel_width, xnn_params.qu8.dwconv, XNN_MAX_QU8_DWCONV_UKERNE… in xnn_create_convolution2d_nhwc_qu8() 568 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_qu8() [all …]
|
/external/ComputeLibrary/src/core/NEON/kernels/arm_gemm/ |
D | convolver.hpp | 163 m_kernel_y(params.kernel_width * params.kernel_height, 0), in convolver() 164 m_kernel_x(params.kernel_width * params.kernel_height, 0) { in convolver() 168 for (unsigned int kx=0; kx<params.kernel_width; kx++) { in convolver() 169 unsigned int n = (ky * params.kernel_width) + kx; in convolver()
|
/external/ComputeLibrary/tests/validation/reference/ |
D | Im2Col.cpp | 44 const int kernel_width = kernel_dims.width; in im2col_nchw() local 76 for(int xk = 0; xk < kernel_width; ++xk) in im2col_nchw() 98 const int kernel_width = kernel_dims.width; in im2col_nhwc() local 127 for(int xk = 0; xk < kernel_width; ++xk) in im2col_nhwc() 129 …dst[ci + (xk + yk * kernel_width) * src_channels + yo * dst.shape().x() + b * dst.shape().x() * ds… in im2col_nhwc()
|