Home
last modified time | relevance | path

Searched refs:kernel_height (Results 1 – 25 of 32) sorted by relevance

12

/external/XNNPACK/test/
Df32-dwconv-spchw.cc24 .kernel_height(3) in TEST()
39 .kernel_height(3) in TEST()
55 .kernel_height(3) in TEST()
71 .kernel_height(3) in TEST()
88 .kernel_height(3) in TEST()
106 .kernel_height(3) in TEST()
123 .kernel_height(3) in TEST()
140 .kernel_height(3) in TEST()
157 .kernel_height(3) in TEST()
176 .kernel_height(3) in TEST()
[all …]
Dconvolution-nhwc.cc817 .kernel_height(5) in TEST()
830 .kernel_height(5) in TEST()
844 .kernel_height(3) in TEST()
859 .kernel_height(5) in TEST()
873 .kernel_height(5) in TEST()
888 .kernel_height(3) in TEST()
903 .kernel_height(5) in TEST()
917 .kernel_height(5) in TEST()
932 .kernel_height(3) in TEST()
947 .kernel_height(5) in TEST()
[all …]
Dconv-hwc-microkernel-tester.h168 inline ConvHWCMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
169 assert(kernel_height >= 1); in kernel_height()
170 this->kernel_height_ = kernel_height; in kernel_height()
174 inline uint32_t kernel_height() const { in kernel_height() function
247 if (padded_input_height < kernel_height()) { in output_height()
250 return (padded_input_height - kernel_height()) / subsampling_height() + 1; in output_height()
304 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels());
308 …loat, AlignedAllocator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_wid…
321 kernel_height(), kernel_width(),
330 for (size_t ky = 0; ky < kernel_height(); ky++) {
[all …]
Dconv-hwc2spchw-microkernel-tester.h168 inline ConvHWC2SpCHWMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() argument
169 assert(kernel_height >= 1); in kernel_height()
170 this->kernel_height_ = kernel_height; in kernel_height()
174 inline uint32_t kernel_height() const { in kernel_height() function
247 if (padded_input_height < kernel_height()) { in output_height()
250 return (padded_input_height - kernel_height()) / subsampling_height() + 1; in output_height()
304 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels());
308 …loat, AlignedAllocator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_wid…
321 kernel_height(), kernel_width(),
330 for (size_t ky = 0; ky < kernel_height(); ky++) {
[all …]
Ddwconv-spchw-microkernel-tester.h74 return (output_height() - 1) * subsampling() + kernel_height(); in input_height()
97 inline DWConvSpCHWMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
98 assert(kernel_height != 0); in kernel_height()
99 this->kernel_height_ = kernel_height; in kernel_height()
103 inline uint32_t kernel_height() const { in kernel_height() function
118 return kernel_height() * kernel_width(); in kernel_size()
246 for (size_t ky = 0; ky < kernel_height(); ky++) {
Dconvolution-operator-tester.h213 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
214 assert(kernel_height >= 1); in kernel_size()
216 this->kernel_height_ = kernel_height; in kernel_size()
221 inline ConvolutionOperatorTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
222 assert(kernel_height >= 1); in kernel_height()
223 this->kernel_height_ = kernel_height; in kernel_height()
227 inline uint32_t kernel_height() const { in kernel_height() function
372 return (kernel_height() - 1) * dilation_height() + 1; in dilated_kernel_height()
544 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestNHWCxQ8()
582 for (size_t ky = 0; ky < kernel_height(); ky++) { in TestNHWCxQ8()
[all …]
Ddeconvolution-operator-tester.h192 inline DeconvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
193 assert(kernel_height >= 1); in kernel_size()
195 this->kernel_height_ = kernel_height; in kernel_size()
200 inline DeconvolutionOperatorTester& kernel_height(uint32_t kernel_height) { in kernel_height() argument
201 assert(kernel_height >= 1); in kernel_height()
202 this->kernel_height_ = kernel_height; in kernel_height()
206 inline uint32_t kernel_height() const { in kernel_height() function
321 return (kernel_height() - 1) * dilation_height() + 1; in dilated_kernel_height()
438 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestQ8()
473 for (size_t ky = 0; ky < kernel_height(); ky++) { in TestQ8()
[all …]
Ddeconvolution-nhwc.cc575 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
579 .kernel_size(kernel_height, 3) in TEST()
865 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
869 .kernel_size(kernel_height, 3) in TEST()
1174 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1179 .kernel_size(kernel_height, 3) in TEST()
1484 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1489 .kernel_size(kernel_height, 3) in TEST()
1803 .kernel_height(3)
1817 .kernel_height(3)
[all …]
/external/XNNPACK/src/
Dindirection.c31 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_conv2d() local
42 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_conv2d()
52 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_conv2d()
94 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_dwconv2d() local
105 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_dwconv2d()
111 …ght + output_y) * step_height + output_x * step_width * kernel_height + kernel_x * kernel_height +… in xnn_indirection_init_dwconv2d()
123 …ght + output_y) * step_height + output_x * step_width * kernel_height + kernel_x * kernel_height +… in xnn_indirection_init_dwconv2d()
146 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_deconv2d() local
157 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_deconv2d()
169 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_deconv2d()
[all …]
Ddeconvolution-nhwc.c46 uint32_t kernel_height, 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 …n_height, dilation_width) == 1 && stride_width <= kernel_width && stride_height <= kernel_height) { in xnn_create_deconvolution2d_nhwc_q8()
216 const size_t subkernel_height = divide_round_up(kernel_height - offset_y, stride_height); in xnn_create_deconvolution2d_nhwc_q8()
243 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in xnn_create_deconvolution2d_nhwc_q8()
267 deconvolution_op->kernel_height = kernel_height; in xnn_create_deconvolution2d_nhwc_q8()
310 uint32_t kernel_height, in xnn_create_deconvolution2d_nhwc_f32() argument
338 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_deconvolution2d_nhwc_f32()
[all …]
Dconvolution-nhwc.c66 uint32_t kernel_height, 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()
361 convolution_op->kernel_height = kernel_height; in xnn_create_convolution2d_nhwc_q8()
401 uint32_t kernel_height, 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.c42 uint32_t kernel_height, 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()
205 assert(kernel_height == 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.c119 uint32_t kernel_height, 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()
244 node->params.convolution_2d.kernel_height = kernel_height; in xnn_define_convolution_2d()
272 uint32_t kernel_height, 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()
390 node->params.depthwise_convolution_2d.kernel_height = kernel_height; in xnn_define_depthwise_convolution_2d()
Dim2col.c16 size_t kernel_height, in xnn_im2col_conv2d() argument
32 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_im2col_conv2d()
Dunpooling-nhwc.c106 unpooling_op->kernel_height = pooling_height; in xnn_create_unpooling2d_nhwc_x32()
165 unpooling_op->kernel_height); in xnn_setup_unpooling2d_nhwc_x32()
184 const size_t pooling_height = unpooling_op->kernel_height; in xnn_setup_unpooling2d_nhwc_x32()
Daverage-pooling-nhwc.c183 average_pooling_op->kernel_height = pooling_height; in xnn_create_average_pooling2d_nhwc_q8()
330 average_pooling_op->kernel_height = pooling_height; in xnn_create_average_pooling2d_nhwc_f32()
400 average_pooling_op->kernel_height, in xnn_setup_average_pooling2d_nhwc_q8()
422 const size_t pooling_height = average_pooling_op->kernel_height; in xnn_setup_average_pooling2d_nhwc_q8()
528 average_pooling_op->kernel_height, in xnn_setup_average_pooling2d_nhwc_f32()
550 const size_t pooling_height = average_pooling_op->kernel_height; in xnn_setup_average_pooling2d_nhwc_f32()
626 …oz(output_y * average_pooling_op->stride_height + average_pooling_op->kernel_height, average_pooli… in xnn_setup_average_pooling2d_nhwc_f32()
Dmax-pooling-nhwc.c142 max_pooling_op->kernel_height = pooling_height; in xnn_create_max_pooling2d_nhwc_u8()
283 max_pooling_op->kernel_height = pooling_height; in xnn_create_max_pooling2d_nhwc_f32()
347 max_pooling_op->kernel_height, in setup_max_pooling2d()
356 const size_t pooling_height = max_pooling_op->kernel_height; in setup_max_pooling2d()
/external/XNNPACK/bench/
Df32-dwconv.cc43 const size_t kernel_height = state.range(2); in DWConvBenchmark() local
51 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark()
61 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in DWConvBenchmark()
69 const size_t step_height = kernel_size + (output_width - 1) * step_width * kernel_height; 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()
108 convolution_op.kernel_height = kernel_height; in DWConvBenchmark()
140 kernel_height * step_width * sizeof(void*), 0, in DWConvBenchmark()
Ddeconvolution.cc33 const size_t kernel_height = state.range(3); in xnnpack_deconvolution_q8() local
50 const size_t effective_kernel_height = (kernel_height - 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()
151 const size_t kernel_height = state.range(3); in xnnpack_deconvolution_f32() local
167 const size_t effective_kernel_height = (kernel_height - 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-im2col-gemm.cc38 const size_t kernel_height = state.range(2); in Im2ColGEMMBenchmark() local
40 const size_t kernel_size = kernel_height * kernel_width; in Im2ColGEMMBenchmark()
52 const size_t effective_kernel_height = (kernel_height - 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.cc39 const size_t kernel_height = state.range(2); in DWConvCHWBenchmark() local
47 if (kernel_height != kh) { in DWConvCHWBenchmark()
76 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in DWConvCHWBenchmark()
82 const size_t kernel_size = kernel_height * kernel_width; in DWConvCHWBenchmark()
156 const size_t kernel_height = state.range(2); in DWConvHWoTCTBenchmark() local
164 if (kernel_height != kh) { in DWConvHWoTCTBenchmark()
193 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in DWConvHWoTCTBenchmark()
199 const size_t kernel_size = kernel_height * kernel_width; in DWConvHWoTCTBenchmark()
Dconvolution.cc44 const size_t kernel_height = state.range(3); in xnnpack_convolution_q8() local
61 const size_t effective_kernel_height = (kernel_height - 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()
162 const size_t kernel_height = state.range(3); in xnnpack_convolution_f32() local
178 const size_t effective_kernel_height = (kernel_height - 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.py72 for kernel_height in range(1, 4):
74 f_shape = [kernel_height, kernel_width, 2, 2]
179 for kernel_height in range(1, 4):
181 f_shape = [kernel_height, kernel_width, 2, 2]
186 kernel_height_up = (kernel_height + (kernel_height - 1) *
220 for kernel_height 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
/external/XNNPACK/src/xnnpack/
Dsubgraph.h81 uint32_t kernel_height; member
96 uint32_t kernel_height; member

12