Home
last modified time | relevance | path

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

12

/external/XNNPACK/test/
Df32-dwconv2d-chw.cc26 .kernel_height(3) in TEST()
42 .kernel_height(3) in TEST()
59 .kernel_height(3) in TEST()
76 .kernel_height(3) in TEST()
94 .kernel_height(3) in TEST()
114 .kernel_height(3) in TEST()
130 .kernel_height(3) in TEST()
147 .kernel_height(3) in TEST()
164 .kernel_height(3) in TEST()
182 .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 …]
Ddwconv2d-microkernel-tester.h103 inline DWConv2DMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() argument
104 assert(kernel_height != 0); in kernel_height()
105 this->kernel_height_ = kernel_height; in kernel_height()
109 inline uint32_t kernel_height() const { in kernel_height() function
124 return kernel_height() * kernel_width(); in kernel_size()
129 if (padded_input_height <= kernel_height()) { in output_height()
132 return (padded_input_height - kernel_height()) / subsampling() + 1; in output_height()
191 for (size_t ky = 0; ky < kernel_height(); ky++) {
Dconv-hwc2chw-microkernel-tester.h168 inline ConvHWC2CHWMicrokernelTester& 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-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 …n (std::max<size_t>(padded_input_height + subsampling_height(), kernel_height()) - kernel_height()) in output_height()
298 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels());
302 …loat, AlignedAllocator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_wid…
315 kernel_height(), kernel_width(),
324 for (size_t ky = 0; ky < kernel_height(); ky++) {
333 … kernel[((oc * kernel_height() + ky) * kernel_width() + kx) * input_channels() + ic];
Dconvolution-operator-tester.h216 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
217 assert(kernel_height >= 1); in kernel_size()
219 this->kernel_height_ = kernel_height; in kernel_size()
224 inline ConvolutionOperatorTester& kernel_height(uint32_t kernel_height) { in kernel_height() argument
225 assert(kernel_height >= 1); in kernel_height()
226 this->kernel_height_ = kernel_height; in kernel_height()
230 inline uint32_t kernel_height() const { in kernel_height() function
345 return (kernel_height() - 1) * dilation_height() + 1; in dilated_kernel_height()
518 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestNHWCxQS8()
555 for (size_t ky = 0; ky < kernel_height(); ky++) { in TestNHWCxQS8()
[all …]
Ddeconvolution-operator-tester.h248 inline DeconvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
249 assert(kernel_height >= 1); in kernel_size()
251 this->kernel_height_ = kernel_height; in kernel_size()
256 inline DeconvolutionOperatorTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
257 assert(kernel_height >= 1); in kernel_height()
258 this->kernel_height_ = kernel_height; in kernel_height()
262 inline uint32_t kernel_height() const { in kernel_height() function
377 return (kernel_height() - 1) * dilation_height() + 1; in dilated_kernel_height()
494 …std::vector<uint8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() … in TestQU8()
529 for (size_t ky = 0; ky < kernel_height(); ky++) { in TestQU8()
[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()
893 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
897 .kernel_size(kernel_height, 3) in TEST()
1232 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1237 .kernel_size(kernel_height, 3) in TEST()
1572 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1577 .kernel_size(kernel_height, 3) in TEST()
1923 .kernel_height(3)
1937 .kernel_height(3)
[all …]
Dsubgraph-tester.h77 uint32_t kernel_height, uint32_t kernel_width, in add_conv() argument
86 input_padding_bottom, input_padding_left, kernel_height, kernel_width, in add_conv()
100 uint32_t kernel_height, uint32_t kernel_width, in add_depthwise_conv() argument
108 input_padding_bottom, input_padding_left, kernel_height, kernel_width, in add_depthwise_conv()
/external/XNNPACK/tools/
Dgenerate-dwconv2d-chw-test.py227 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
279 "KERNEL_HEIGHT": kernel_height,
322 kernel_height, kernel_width, subsampling, padding, arch, isa, \
328 test_case = generate_test_cases(name, kernel_height, kernel_width, \
/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()
91 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_deconv2d() local
102 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_deconv2d()
114 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_deconv2d()
147 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_subconv2d() local
169 for (size_t kernel_y = offset_y; kernel_y < kernel_height; kernel_y += stride_height) { in xnn_indirection_init_subconv2d()
212 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_dwconv2d() local
222 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_dwconv2d()
[all …]
/external/XNNPACK/src/subgraph/
Ddepthwise-convolution-2d.c22 uint32_t kernel_height, 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()
122 const uint32_t padding_height = (kernel_height - 1) * dilation_height; in xnn_define_depthwise_convolution_2d()
168 node->params.depthwise_convolution_2d.kernel_height = kernel_height; in xnn_define_depthwise_convolution_2d()
Dconvolution-2d.c22 uint32_t kernel_height, 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()
130 const uint32_t padding_height = (kernel_height - 1) * dilation_height; in xnn_define_convolution_2d()
176 node->params.convolution_2d.kernel_height = kernel_height; in xnn_define_convolution_2d()
Ddeconvolution-2d.c24 uint32_t kernel_height, 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()
148 node->params.deconvolution_2d.kernel_height = kernel_height; in xnn_define_deconvolution_2d()
/external/XNNPACK/bench/
Ddeconvolution.cc32 const size_t kernel_height = state.range(3); in xnnpack_deconvolution_qu8() local
49 const size_t effective_kernel_height = (kernel_height - 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()
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()
199 kernel_height, kernel_width, in xnnpack_deconvolution_f32()
259 kernel_height * kernel_width, in xnnpack_deconvolution_f32()
[all …]
Df16-dwconv.cc44 const size_t kernel_height = state.range(2); in DWConvBenchmark() local
52 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark()
63 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in DWConvBenchmark()
71 const size_t step_height = kernel_size + (output_width - 1) * step_width * kernel_height; 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()
109 convolution_op.kernel_height = kernel_height; in DWConvBenchmark()
141 kernel_height * step_width * sizeof(void*), 0, in DWConvBenchmark()
Df32-im2col-gemm.cc36 const size_t kernel_height = state.range(2); in Im2ColGEMMBenchmark() local
38 const size_t kernel_size = kernel_height * kernel_width; in Im2ColGEMMBenchmark()
50 const size_t effective_kernel_height = (kernel_height - 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()
Df16-igemm.cc42 const size_t kernel_height = state.range(2); in IGEMMBenchmark() local
44 const size_t kernel_size = kernel_height * kernel_width; in IGEMMBenchmark()
59 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in IGEMMBenchmark()
73 …std::vector<uint16_t> k(group_output_channels * kernel_height * kernel_width * group_input_channel… in IGEMMBenchmark()
109 convolution_op.kernel_height = kernel_height; in IGEMMBenchmark()
162 kernel_height * kernel_width, in IGEMMBenchmark()
Df32-dwconv.cc37 const size_t kernel_height = state.range(2); in DWConvBenchmark() local
45 const size_t kernel_size = kernel_height * kernel_width; in DWConvBenchmark()
55 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in DWConvBenchmark()
63 const size_t step_height = kernel_size + (output_width - 1) * step_width * kernel_height; 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()
101 convolution_op.kernel_height = kernel_height; in DWConvBenchmark()
133 kernel_height * step_width * sizeof(void*), 0, in DWConvBenchmark()
Dconvolution.cc45 const size_t kernel_height = state.range(3); in xnnpack_convolution_qu8() local
62 const size_t effective_kernel_height = (kernel_height - 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()
165 const size_t kernel_height = state.range(3); in xnnpack_convolution_qs8() local
183 const size_t effective_kernel_height = (kernel_height - 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 …]
/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]
177 for kernel_height in range(1, 4):
179 f_shape = [kernel_height, kernel_width, 2, 2]
184 kernel_height_up = (kernel_height + (kernel_height - 1) *
217 for kernel_height in range(1, 4):
219 f_shape = [kernel_height, kernel_width, 2, 2]
/external/XNNPACK/src/operators/
Ddeconvolution-nhwc.c46 uint32_t kernel_height, 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 …n_height, dilation_width) == 1 && stride_width <= kernel_width && stride_height <= kernel_height) { in create_deconvolution2d_nhwc()
196 const size_t subkernel_height = divide_round_up(kernel_height - offset_y, stride_height); in create_deconvolution2d_nhwc()
225 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in create_deconvolution2d_nhwc()
250 deconvolution_op->kernel_height = kernel_height; in create_deconvolution2d_nhwc()
276 const uint32_t padding_height = (kernel_height - 1) * dilation_height; in create_deconvolution2d_nhwc()
306 uint32_t kernel_height, in xnn_create_deconvolution2d_nhwc_qu8() argument
[all …]
Dconvolution-nchw.c42 uint32_t kernel_height, 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()
234 assert(kernel_height == 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 …]
Dconvolution-nhwc.c66 uint32_t kernel_height, 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()
389 convolution_op->kernel_height = kernel_height; in create_convolution2d_nhwc()
423 uint32_t kernel_height, in xnn_create_convolution2d_nhwc_qu8() argument
493 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_qu8()
521 uint32_t kernel_height, in xnn_create_convolution2d_nhwc_qs8() argument
[all …]
Daverage-pooling-nhwc.c201 average_pooling_op->kernel_height = pooling_height; in xnn_create_average_pooling2d_nhwc_qu8()
371 average_pooling_op->kernel_height = pooling_height; in xnn_create_average_pooling2d_nhwc_f32()
454 const uint32_t kernel_height = average_pooling_op->kernel_height; in setup_average_pooling2d() local
457 …(average_pooling_op->output_height - 1) * average_pooling_op->stride_height + kernel_height - inpu… in setup_average_pooling2d()
467 average_pooling_op->kernel_height, in setup_average_pooling2d()
480 … == average_pooling_op->kernel_width && padded_input_height == average_pooling_op->kernel_height) { in setup_average_pooling2d()
508 const size_t pooling_height = average_pooling_op->kernel_height; in setup_average_pooling2d()
562 …oz(output_y * average_pooling_op->stride_height + average_pooling_op->kernel_height, average_pooli… in setup_average_pooling2d()
660 const size_t pooling_size = average_pooling_op->kernel_height * average_pooling_op->kernel_width; in xnn_setup_average_pooling2d_nhwc_qu8()

12