/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 | 818 .kernel_width(3) in TEST() 831 .kernel_width(3) in TEST() 845 .kernel_width(3) in TEST() 860 .kernel_width(3) in TEST() 874 .kernel_width(3) in TEST() 889 .kernel_width(3) in TEST() 904 .kernel_width(3) in TEST() 918 .kernel_width(3) in TEST() 933 .kernel_width(3) in TEST() 948 .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() function 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 | convolution-operator-tester.h | 216 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument 218 assert(kernel_width >= 1); in kernel_size() 220 this->kernel_width_ = kernel_width; in kernel_size() 234 inline ConvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() function 235 assert(kernel_width >= 1); in kernel_width() 236 this->kernel_width_ = kernel_width; in kernel_width() 240 inline uint32_t kernel_width() const { in kernel_width() function 349 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width() 518 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestNHWCxQS8() 558 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestNHWCxQS8() [all …]
|
D | deconvolution-operator-tester.h | 248 inline DeconvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument 250 assert(kernel_width >= 1); in kernel_size() 252 this->kernel_width_ = kernel_width; in kernel_size() 266 inline DeconvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() function 267 assert(kernel_width >= 1); in kernel_width() 268 this->kernel_width_ = kernel_width; in kernel_width() 272 inline uint32_t kernel_width() const { in kernel_width() function 381 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width() 494 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestQU8() 533 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestQU8() [all …]
|
D | deconvolution-nhwc.cc | 589 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { variable 593 .kernel_size(3, kernel_width) 908 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 912 .kernel_size(3, kernel_width) in TEST() 1247 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 1252 .kernel_size(3, kernel_width) in TEST() 1588 for (size_t kernel_width = 1; kernel_width <= 4; kernel_width *= 2) { in TEST() local 1593 .kernel_size(3, kernel_width) in TEST() 1924 .kernel_width(5) 1938 .kernel_width(5) [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/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 | 32 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_conv2d() local 42 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_conv2d() 55 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_conv2d() 57 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_conv2d() 67 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_conv2d() 68 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_conv2d() 92 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_deconv2d() local 102 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_deconv2d() 117 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_deconv2d() 120 const size_t kernel_index = kernel_y * kernel_width + kernel_x; in xnn_indirection_init_deconv2d() [all …]
|
/external/XNNPACK/src/subgraph/ |
D | depthwise-convolution-2d.c | 23 uint32_t kernel_width, in xnn_define_depthwise_convolution_2d() argument 44 if (kernel_width == 0 || kernel_height == 0) { in xnn_define_depthwise_convolution_2d() 47 xnn_node_type_to_string(xnn_node_type_depthwise_convolution_2d), kernel_width, kernel_height); in xnn_define_depthwise_convolution_2d() 123 const uint32_t padding_width = (kernel_width - 1) * dilation_width; in xnn_define_depthwise_convolution_2d() 169 node->params.depthwise_convolution_2d.kernel_width = kernel_width; in xnn_define_depthwise_convolution_2d()
|
D | convolution-2d.c | 23 uint32_t kernel_width, in xnn_define_convolution_2d() argument 45 if (kernel_width == 0 || kernel_height == 0) { in xnn_define_convolution_2d() 48 xnn_node_type_to_string(xnn_node_type_convolution_2d), kernel_width, kernel_height); in xnn_define_convolution_2d() 131 const uint32_t padding_width = (kernel_width - 1) * dilation_width; in xnn_define_convolution_2d() 177 node->params.convolution_2d.kernel_width = kernel_width; in xnn_define_convolution_2d()
|
D | deconvolution-2d.c | 25 uint32_t kernel_width, in xnn_define_deconvolution_2d() argument 47 if (kernel_width == 0 || kernel_height == 0) { in xnn_define_deconvolution_2d() 50 xnn_node_type_to_string(xnn_node_type_deconvolution_2d), kernel_width, kernel_height); in xnn_define_deconvolution_2d() 149 node->params.deconvolution_2d.kernel_width = kernel_width; in xnn_define_deconvolution_2d()
|
/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 | f16-dwconv.cc | 45 const size_t kernel_width = state.range(3); in DWConvBenchmark() local 52 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark() 64 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvBenchmark() 70 const size_t step_width = dilation == 1 ? subsampling : kernel_width; in DWConvBenchmark() 77 std::vector<uint16_t> k(channels * kernel_height * kernel_width); in DWConvBenchmark() 93 xnn_pack_f16_dwconv_ghw_w(kernel_height, kernel_width, channels, cr, in DWConvBenchmark() 110 convolution_op.kernel_width = kernel_width; in DWConvBenchmark()
|
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() 101 kernel_height, kernel_width, in Im2ColGEMMBenchmark() 134 kernel_height * kernel_width, in Im2ColGEMMBenchmark()
|
D | f16-igemm.cc | 43 const size_t kernel_width = state.range(3); in IGEMMBenchmark() local 44 const size_t kernel_size = kernel_height * kernel_width; in IGEMMBenchmark() 60 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in IGEMMBenchmark() 73 …std::vector<uint16_t> k(group_output_channels * kernel_height * kernel_width * group_input_channel… in IGEMMBenchmark() 110 convolution_op.kernel_width = kernel_width; in IGEMMBenchmark() 162 kernel_height * kernel_width, in IGEMMBenchmark()
|
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 | f32-dwconv.cc | 38 const size_t kernel_width = state.range(3); in DWConvBenchmark() local 45 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark() 56 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvBenchmark() 62 const size_t step_width = dilation == 1 ? subsampling : kernel_width; in DWConvBenchmark() 69 std::vector<float> k(channels * kernel_height * kernel_width); in DWConvBenchmark() 85 xnn_pack_f32_dwconv_ghw_w(kernel_height, kernel_width, channels, cr, in DWConvBenchmark() 102 convolution_op.kernel_width = kernel_width; in DWConvBenchmark()
|
/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]
|
D | atrous_convolution_test.py | 134 for kernel_height, kernel_width in [[1, 1], [2, 2], [2, 3]]: 139 filter_shape=[kernel_height, kernel_width, 2, 2], 149 for kernel_depth, kernel_height, kernel_width in [[3, 3, 157 kernel_depth, kernel_height, kernel_width, 2, 2 168 for kernel_width in range(1, 4): 173 filter_shape=[kernel_width, 2, 2],
|
/external/XNNPACK/src/operators/ |
D | deconvolution-nhwc.c | 47 uint32_t kernel_width, in create_deconvolution2d_nhwc() argument 86 if (kernel_width == 0 || kernel_height == 0) { in create_deconvolution2d_nhwc() 89 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_deconvolution2d_nhwc() 175 const uint32_t kernel_size = kernel_height * kernel_width; in create_deconvolution2d_nhwc() 178 …) > 1 && max(dilation_height, dilation_width) == 1 && stride_width <= kernel_width && stride_heigh… in create_deconvolution2d_nhwc() 197 const size_t subkernel_width = divide_round_up(kernel_width - offset_x, stride_width); in create_deconvolution2d_nhwc() 225 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in create_deconvolution2d_nhwc() 251 deconvolution_op->kernel_width = kernel_width; in create_deconvolution2d_nhwc() 277 const uint32_t padding_width = (kernel_width - 1) * dilation_width; in create_deconvolution2d_nhwc() 307 uint32_t kernel_width, in xnn_create_deconvolution2d_nhwc_qu8() argument [all …]
|
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 | convolution-nhwc.c | 67 uint32_t kernel_width, in create_convolution2d_nhwc() argument 125 if (kernel_width == 0 || kernel_height == 0) { in create_convolution2d_nhwc() 128 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_convolution2d_nhwc() 217 const size_t kernel_size = kernel_height * kernel_width; in create_convolution2d_nhwc() 279 kernel_height, kernel_width, in create_convolution2d_nhwc() 284 kernel_height, kernel_width, in create_convolution2d_nhwc() 390 convolution_op->kernel_width = kernel_width; in create_convolution2d_nhwc() 424 uint32_t kernel_width, in xnn_create_convolution2d_nhwc_qu8() argument 493 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_qu8() 522 uint32_t kernel_width, in xnn_create_convolution2d_nhwc_qs8() argument [all …]
|