Home
last modified time | relevance | path

Searched refs:kernel_width (Results 1 – 25 of 34) sorted by relevance

12

/external/XNNPACK/test/
Df32-dwconv-spchw.cc25 .kernel_width(3) in TEST()
40 .kernel_width(3) in TEST()
56 .kernel_width(3) in TEST()
72 .kernel_width(3) in TEST()
89 .kernel_width(3) in TEST()
107 .kernel_width(3) in TEST()
124 .kernel_width(3) in TEST()
141 .kernel_width(3) in TEST()
158 .kernel_width(3) in TEST()
177 .kernel_width(3) in TEST()
[all …]
Dconvolution-nhwc.cc818 .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 …]
Ddwconv-spchw-microkernel-tester.h107 inline DWConvSpCHWMicrokernelTester& kernel_width(uint32_t kernel_width) { in kernel_width() function
108 assert(kernel_width != 0); in kernel_width()
109 this->kernel_width_ = kernel_width; in kernel_width()
113 inline uint32_t kernel_width() const { in kernel_width() function
118 return kernel_height() * kernel_width(); in kernel_size()
133 if (padded_input_width <= kernel_width()) { in output_width()
136 return (padded_input_width - kernel_width()) / subsampling() + 1; in output_width()
248 for (size_t kx = 0; kx < kernel_width(); kx++) {
253 packed_weights[1 + ky * kernel_width() + kx];
Dconv-hwc-microkernel-tester.h178 inline ConvHWCMicrokernelTester& 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 …]
Dconv-hwc2spchw-microkernel-tester.h178 inline ConvHWC2SpCHWMicrokernelTester& 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 …]
Dconvolution-operator-tester.h213 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
215 assert(kernel_width >= 1); in kernel_size()
217 this->kernel_width_ = kernel_width; in kernel_size()
231 inline ConvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() function
232 assert(kernel_width >= 1); in kernel_width()
233 this->kernel_width_ = kernel_width; in kernel_width()
237 inline uint32_t kernel_width() const { in kernel_width() function
376 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width()
544 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestNHWCxQ8()
585 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestNHWCxQ8()
[all …]
Ddeconvolution-operator-tester.h192 inline DeconvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
194 assert(kernel_width >= 1); in kernel_size()
196 this->kernel_width_ = kernel_width; in kernel_size()
210 inline DeconvolutionOperatorTester& kernel_width(uint32_t kernel_width) { in kernel_width() function
211 assert(kernel_width >= 1); in kernel_width()
212 this->kernel_width_ = kernel_width; in kernel_width()
216 inline uint32_t kernel_width() const { in kernel_width() function
325 return (kernel_width() - 1) * dilation_width() + 1; in dilated_kernel_width()
438 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestQ8()
477 for (size_t kx = 0; kx < kernel_width(); kx++) { in TestQ8()
[all …]
Ddeconvolution-nhwc.cc589 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 …]
/external/XNNPACK/src/
Dindirection.c32 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()
95 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_dwconv2d() local
109 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_dwconv2d()
122 for (size_t kernel_x = 0; kernel_x < kernel_width; kernel_x++) { in xnn_indirection_init_dwconv2d()
147 const size_t kernel_width = op->kernel_width; in xnn_indirection_init_deconv2d() local
[all …]
Dim2col.c17 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()
Ddeconvolution-nhwc.c47 uint32_t kernel_width, in xnn_create_deconvolution2d_nhwc_q8() argument
80 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_deconvolution2d_nhwc_q8()
83 kernel_width, kernel_height); in xnn_create_deconvolution2d_nhwc_q8()
197 const uint32_t kernel_size = kernel_height * kernel_width; in xnn_create_deconvolution2d_nhwc_q8()
200 …) > 1 && max(dilation_height, dilation_width) == 1 && stride_width <= kernel_width && stride_heigh… in xnn_create_deconvolution2d_nhwc_q8()
217 const size_t subkernel_width = divide_round_up(kernel_width - offset_x, stride_width); in xnn_create_deconvolution2d_nhwc_q8()
243 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in xnn_create_deconvolution2d_nhwc_q8()
268 deconvolution_op->kernel_width = kernel_width; in xnn_create_deconvolution2d_nhwc_q8()
311 uint32_t kernel_width, in xnn_create_deconvolution2d_nhwc_f32() argument
338 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_deconvolution2d_nhwc_f32()
[all …]
Dconvolution-nhwc.c67 uint32_t kernel_width, in xnn_create_convolution2d_nhwc_q8() argument
100 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_convolution2d_nhwc_q8()
103 kernel_width, kernel_height); in xnn_create_convolution2d_nhwc_q8()
230 const size_t kernel_size = kernel_height * kernel_width; in xnn_create_convolution2d_nhwc_q8()
261 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_q8()
267 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_q8()
362 convolution_op->kernel_width = kernel_width; in xnn_create_convolution2d_nhwc_q8()
402 uint32_t kernel_width, in xnn_create_convolution2d_nhwc_f32() argument
429 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_convolution2d_nhwc_f32()
432 kernel_width, kernel_height); in xnn_create_convolution2d_nhwc_f32()
[all …]
Dconvolution-nchw.c43 uint32_t kernel_width, in xnn_create_convolution2d_nchw_f32() argument
68 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_convolution2d_nchw_f32()
71 kernel_width, kernel_height); in xnn_create_convolution2d_nchw_f32()
153 …const bool is_1x1 = kernel_width == 1 && kernel_height == 1 && subsampling_height == 1 && subsampl… in xnn_create_convolution2d_nchw_f32()
154 …const bool is_3x3 = kernel_width == 3 && kernel_height == 3 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32()
155 …const bool is_5x5 = kernel_width == 5 && kernel_height == 5 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32()
206 assert(kernel_width == 1); in xnn_create_convolution2d_nchw_f32()
386 (group_input_channels * kernel_height * kernel_width + 1 /* bias */) * sizeof(float); in xnn_create_convolution2d_nchw_f32()
397 kernel_height, kernel_width, in xnn_create_convolution2d_nchw_f32()
414 …const size_t packed_weights_size = groups * (kernel_height * kernel_width + 1 /* bias */) * sizeof… in xnn_create_convolution2d_nchw_f32()
[all …]
Dsubgraph.c120 uint32_t kernel_width, in xnn_define_convolution_2d() argument
141 if (kernel_width == 0 || kernel_height == 0) { in xnn_define_convolution_2d()
144 kernel_width, kernel_height); in xnn_define_convolution_2d()
245 node->params.convolution_2d.kernel_width = kernel_width; in xnn_define_convolution_2d()
273 uint32_t kernel_width, in xnn_define_depthwise_convolution_2d() argument
293 if (kernel_width == 0 || kernel_height == 0) { in xnn_define_depthwise_convolution_2d()
296 kernel_width, kernel_height); in xnn_define_depthwise_convolution_2d()
391 node->params.depthwise_convolution_2d.kernel_width = kernel_width; in xnn_define_depthwise_convolution_2d()
Dunpooling-nhwc.c107 unpooling_op->kernel_width = pooling_width; in xnn_create_unpooling2d_nhwc_x32()
168 unpooling_op->kernel_width); in xnn_setup_unpooling2d_nhwc_x32()
185 const size_t pooling_width = unpooling_op->kernel_width; in xnn_setup_unpooling2d_nhwc_x32()
Daverage-pooling-nhwc.c184 average_pooling_op->kernel_width = pooling_width; in xnn_create_average_pooling2d_nhwc_q8()
331 average_pooling_op->kernel_width = pooling_width; in xnn_create_average_pooling2d_nhwc_f32()
404 average_pooling_op->kernel_width, in xnn_setup_average_pooling2d_nhwc_q8()
423 const size_t pooling_width = average_pooling_op->kernel_width; in xnn_setup_average_pooling2d_nhwc_q8()
532 average_pooling_op->kernel_width, in xnn_setup_average_pooling2d_nhwc_f32()
551 const size_t pooling_width = average_pooling_op->kernel_width; in xnn_setup_average_pooling2d_nhwc_f32()
631 …doz(output_x * average_pooling_op->stride_width + average_pooling_op->kernel_width, average_poolin… in xnn_setup_average_pooling2d_nhwc_f32()
Dmax-pooling-nhwc.c143 max_pooling_op->kernel_width = pooling_width; in xnn_create_max_pooling2d_nhwc_u8()
284 max_pooling_op->kernel_width = pooling_width; in xnn_create_max_pooling2d_nhwc_f32()
352 max_pooling_op->kernel_width, in setup_max_pooling2d()
357 const size_t pooling_width = max_pooling_op->kernel_width; in setup_max_pooling2d()
/external/XNNPACK/bench/
Ddeconvolution.cc34 const size_t kernel_width = state.range(4); in xnnpack_deconvolution_q8() local
51 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_deconvolution_q8()
61 …std::vector<uint8_t> kernel(groups * group_output_channels * kernel_height * kernel_width * group_… in xnnpack_deconvolution_q8()
86 kernel_height, kernel_width, in xnnpack_deconvolution_q8()
143 kernel_height * kernel_width, in xnnpack_deconvolution_q8()
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()
203 kernel_height, kernel_width, in xnnpack_deconvolution_f32()
259 kernel_height * kernel_width, in xnnpack_deconvolution_f32()
[all …]
Df32-dwconv.cc44 const size_t kernel_width = state.range(3); in DWConvBenchmark() local
51 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark()
62 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvBenchmark()
68 const size_t step_width = dilation == 1 ? subsampling : kernel_width; in DWConvBenchmark()
75 std::vector<float> k(channels * kernel_height * kernel_width); in DWConvBenchmark()
91 xnn_pack_f32_dwconv_ghw_w(kernel_height, kernel_width, channels, cr, in DWConvBenchmark()
109 convolution_op.kernel_width = kernel_width; in DWConvBenchmark()
Df32-im2col-gemm.cc39 const size_t kernel_width = state.range(3); in Im2ColGEMMBenchmark() local
40 const size_t kernel_size = kernel_height * kernel_width; in Im2ColGEMMBenchmark()
53 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in Im2ColGEMMBenchmark()
65 std::vector<float> k(group_output_channels * kernel_height * kernel_width * group_input_channels); in Im2ColGEMMBenchmark()
103 kernel_height, kernel_width, in Im2ColGEMMBenchmark()
132 kernel_height * kernel_width, in Im2ColGEMMBenchmark()
Df32-dwconv-spchw.cc40 const size_t kernel_width = state.range(3); in DWConvCHWBenchmark() local
52 if (kernel_width != kw) { in DWConvCHWBenchmark()
77 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvCHWBenchmark()
82 const size_t kernel_size = kernel_height * kernel_width; in DWConvCHWBenchmark()
157 const size_t kernel_width = state.range(3); in DWConvHWoTCTBenchmark() local
169 if (kernel_width != kw) { in DWConvHWoTCTBenchmark()
194 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in DWConvHWoTCTBenchmark()
199 const size_t kernel_size = kernel_height * kernel_width; in DWConvHWoTCTBenchmark()
Dconvolution.cc45 const size_t kernel_width = state.range(4); in xnnpack_convolution_q8() local
62 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_convolution_q8()
72 …std::vector<uint8_t> kernel(groups * group_output_channels * kernel_height * kernel_width * group_… in xnnpack_convolution_q8()
97 kernel_height, kernel_width, in xnnpack_convolution_q8()
154 kernel_height * kernel_width, in xnnpack_convolution_q8()
163 const size_t kernel_width = state.range(4); in xnnpack_convolution_f32() local
179 const size_t effective_kernel_width = (kernel_width - 1) * dilation + 1; in xnnpack_convolution_f32()
189 …std::vector<float> kernel(groups * group_output_channels * kernel_height * kernel_width * group_in… in xnnpack_convolution_f32()
214 kernel_height, kernel_width, in xnnpack_convolution_f32()
268 kernel_height * kernel_width, in xnnpack_convolution_f32()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Datrous_conv2d_test.py73 for kernel_width in range(1, 4):
74 f_shape = [kernel_height, kernel_width, 2, 2]
180 for kernel_width in range(1, 4):
181 f_shape = [kernel_height, kernel_width, 2, 2]
188 kernel_width_up = kernel_width + (kernel_width - 1) * (rate - 1)
221 for kernel_width in range(1, 4):
222 f_shape = [kernel_height, kernel_width, 2, 2]
Datrous_convolution_test.py134 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/xnnpack/
Dsubgraph.h82 uint32_t kernel_width; member
97 uint32_t kernel_width; member

12