Home
last modified time | relevance | path

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

1234

/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 …]
Df16-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-test-helpers.cc25 size_t kernel_height, in compute_convolution_qs8_reference_results() argument
59 for (size_t ky = 0; ky < kernel_height; ky++) { in compute_convolution_qs8_reference_results()
72 …int32_t(filter[(((g * group_output_channels + oc) * kernel_height + ky) * kernel_width + kx) * gro… in compute_convolution_qs8_reference_results()
95 size_t kernel_height, in compute_convolution_qs8_reference_results() argument
121 kernel_height, in compute_convolution_qs8_reference_results()
149 size_t kernel_height, in compute_convolution_qu8_reference_results() argument
184 for (size_t ky = 0; ky < kernel_height; ky++) { in compute_convolution_qu8_reference_results()
196 …(int32_t(filter[(((g * group_output_channels + oc) * kernel_height + ky) * kernel_width + kx) * gr… in compute_convolution_qu8_reference_results()
219 size_t kernel_height, in compute_convolution_qu8_reference_results() argument
246 kernel_height, in compute_convolution_qu8_reference_results()
[all …]
Dconvolution-nhwc.cc963 .kernel_height(5) in TEST()
976 .kernel_height(5) in TEST()
990 .kernel_height(3) in TEST()
1005 .kernel_height(5) in TEST()
1019 .kernel_height(5) in TEST()
1034 .kernel_height(3) in TEST()
1049 .kernel_height(5) in TEST()
1063 .kernel_height(5) in TEST()
1078 .kernel_height(3) in TEST()
1093 .kernel_height(5) in TEST()
[all …]
Dconv-hwc2chw-microkernel-tester.h169 inline ConvHWC2CHWMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
170 assert(kernel_height >= 1); in kernel_height()
171 this->kernel_height_ = kernel_height; in kernel_height()
175 inline uint32_t kernel_height() const { in kernel_height() function
248 if (padded_input_height < kernel_height()) { in output_height()
251 return (padded_input_height - kernel_height()) / subsampling_height() + 1; in output_height()
305 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels());
309 …loat, AlignedAllocator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_wid…
322 kernel_height(), kernel_width(),
331 for (size_t ky = 0; ky < kernel_height(); ky++) {
[all …]
Dconv-hwc-microkernel-tester.h167 inline ConvHWCMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() argument
168 assert(kernel_height >= 1); in kernel_height()
169 this->kernel_height_ = kernel_height; in kernel_height()
173 inline uint32_t kernel_height() const { in kernel_height() function
246 …n (std::max<size_t>(padded_input_height + subsampling_height(), kernel_height()) - kernel_height()) in output_height()
297 …std::vector<float> kernel(output_channels() * kernel_height() * kernel_width() * input_channels());
301 …loat, AlignedAllocator<float, 64>> packed_weights((input_channels() * kernel_height() * kernel_wid…
314 kernel_height(), kernel_width(),
323 for (size_t ky = 0; ky < kernel_height(); ky++) {
332 … kernel[((oc * kernel_height() + ky) * kernel_width() + kx) * input_channels() + ic];
Ddwconv2d-microkernel-tester.h104 inline DWConv2DMicrokernelTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
105 assert(kernel_height != 0); in kernel_height()
106 this->kernel_height_ = kernel_height; in kernel_height()
110 inline uint32_t kernel_height() const { in kernel_height() function
125 return kernel_height() * kernel_width(); in kernel_size()
130 if (padded_input_height <= kernel_height()) { in output_height()
133 return (padded_input_height - kernel_height()) / subsampling() + 1; in output_height()
192 for (size_t ky = 0; ky < kernel_height(); ky++) {
269 for (size_t ky = 0; ky < kernel_height(); ky++) { in Test()
Dconvolution-test-helpers.h23 size_t kernel_height,
50 size_t kernel_height,
76 size_t kernel_height,
103 size_t kernel_height,
131 size_t kernel_height,
157 size_t kernel_height,
182 size_t kernel_height,
209 size_t kernel_height,
Ddeconvolution-2d.cc39 kernel_height = kernel_size_dist(rng); in DeconvolutionTestBase()
53 …input_height, padding_top + padding_bottom, adjustment_height, kernel_height, dilation_height, ups… in DeconvolutionTestBase()
58 …kernel_dims = {{groups * group_output_channels, kernel_height, kernel_width, group_input_channels}… in DeconvolutionTestBase()
64 …kernel = std::vector<T>(groups * group_output_channels * kernel_height * kernel_width * group_inpu… in DeconvolutionTestBase()
86 uint32_t kernel_height; member in DeconvolutionTestBase
192kernel_height, kernel_width, upsampling_height, upsampling_width, dilation_height, dilation_width,… in TEST_F()
204 ASSERT_EQ(node->params.deconvolution_2d.kernel_height, kernel_height); in TEST_F()
264kernel_height, kernel_width, upsampling_height, upsampling_width, dilation_height, dilation_width,… in TEST_F()
276 ASSERT_EQ(node->params.deconvolution_2d.kernel_height, kernel_height); in TEST_F()
337kernel_height, kernel_width, upsampling_height, upsampling_width, dilation_height, dilation_width,… in TEST_F()
[all …]
Dconvolution-2d.cc41 kernel_height = kernel_size_dist(rng); in ConvolutionTestBase()
52 …output_height = xnn_compute_convolution_output_dimension(input_height, kernel_height, dilation_hei… in ConvolutionTestBase()
56 …filter_dims = {{groups * group_output_channels, kernel_height, kernel_width, group_input_channels}… in ConvolutionTestBase()
62 …filter = std::vector<T>(groups * group_output_channels * kernel_height * kernel_width * group_inpu… in ConvolutionTestBase()
84 uint32_t kernel_height; member in xnnpack::ConvolutionTestBase
173 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
186 ASSERT_EQ(node->params.convolution_2d.kernel_height, kernel_height); in TEST_F()
243 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
256 ASSERT_EQ(node->params.convolution_2d.kernel_height, kernel_height); in TEST_F()
313 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
[all …]
Ddepthwise-convolution-2d.cc42 kernel_height = kernel_size_dist(rng); in DepthwiseConvolutionTestBase()
54 …input_padding_top + input_height + input_padding_bottom, kernel_height, dilation_height, subsampli… in DepthwiseConvolutionTestBase()
62 filter_dims = {{1, kernel_height, kernel_width, output_channels}}; in DepthwiseConvolutionTestBase()
67 filter = std::vector<T>(batch_size * kernel_height * kernel_width * output_channels); in DepthwiseConvolutionTestBase()
88 uint32_t kernel_height; member in xnnpack::DepthwiseConvolutionTestBase
200 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
213 ASSERT_EQ(node->params.depthwise_convolution_2d.kernel_height, kernel_height); in TEST_F()
273 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
286 ASSERT_EQ(node->params.depthwise_convolution_2d.kernel_height, kernel_height); in TEST_F()
346 …h, input_padding_top, input_padding_right, input_padding_bottom, input_padding_left, kernel_height, in TEST_F()
[all …]
Dconvolution-operator-tester.h223 inline ConvolutionOperatorTester& kernel_size(uint32_t kernel_height, uint32_t kernel_width) { in kernel_size() argument
224 assert(kernel_height >= 1); in kernel_size()
226 this->kernel_height_ = kernel_height; in kernel_size()
231 inline ConvolutionOperatorTester& kernel_height(uint32_t kernel_height) { in kernel_height() function
232 assert(kernel_height >= 1); in kernel_height()
233 this->kernel_height_ = kernel_height; in kernel_height()
237 inline uint32_t kernel_height() const { in kernel_height() function
352 return (kernel_height() - 1) * dilation_height() + 1; in dilated_kernel_height()
558 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestNHWCxQC8()
587 kernel_height(), in TestNHWCxQC8()
[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()
878 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
882 .kernel_size(kernel_height, 3) in TEST()
1201 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1206 .kernel_size(kernel_height, 3) in TEST()
1525 for (size_t kernel_height = 1; kernel_height <= 4; kernel_height *= 2) { in TEST() local
1530 .kernel_size(kernel_height, 3) in TEST()
1859 .kernel_height(3)
1873 .kernel_height(3)
[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()
461 …std::vector<int8_t> kernel(groups() * group_output_channels() * kernel_height() * kernel_width() *… in TestQS8()
495 for (size_t ky = 0; ky < kernel_height(); ky++) { in TestQS8()
[all …]
/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
282 "KERNEL_HEIGHT": kernel_height,
326 kernel_height, kernel_width, subsampling, padding, arch, isa, \
332 test_case = generate_test_cases(name, kernel_height, kernel_width, \
/external/tensorflow/tensorflow/python/kernel_tests/nn_ops/
Datrous_conv2d_test.py68 for kernel_height in range(1, 4):
70 f_shape = [kernel_height, kernel_width, 2, 2]
173 for kernel_height in range(1, 4):
175 f_shape = [kernel_height, kernel_width, 2, 2]
180 kernel_height_up = (kernel_height + (kernel_height - 1) *
213 for kernel_height in range(1, 4):
215 f_shape = [kernel_height, kernel_width, 2, 2]
/external/XNNPACK/bench/
Ddeconvolution.cc33 const size_t kernel_height = state.range(3); in xnnpack_deconvolution_qu8() local
51 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in xnnpack_deconvolution_qu8()
62 std::vector<uint8_t> kernel(output_channels * kernel_height * kernel_width * input_channels); in xnnpack_deconvolution_qu8()
83 kernel_height, kernel_width, in xnnpack_deconvolution_qu8()
145 kernel_height * kernel_width, in xnnpack_deconvolution_qu8()
154 const size_t kernel_height = state.range(3); in xnnpack_deconvolution_f32() local
169 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in xnnpack_deconvolution_f32()
181 std::vector<float> kernel(output_channels * kernel_height * kernel_width * input_channels); in xnnpack_deconvolution_f32()
202 kernel_height, kernel_width, in xnnpack_deconvolution_f32()
263 kernel_height * kernel_width, in xnnpack_deconvolution_f32()
[all …]
Df16-dwconv.cc47 const size_t kernel_height = state.range(2); in f16_dwconv() local
55 const size_t kernel_size = kernel_height * kernel_width; in f16_dwconv()
66 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in f16_dwconv()
74 const size_t step_height = kernel_size + (output_width - 1) * step_width * kernel_height; in f16_dwconv()
80 std::vector<uint16_t> k(channels * kernel_height * kernel_width); in f16_dwconv()
96 xnn_pack_f16_dwconv_ghw_w(primary_tile, kernel_height, kernel_width, channels, channel_tile, in f16_dwconv()
112 convolution_op.kernel_height = kernel_height; in f16_dwconv()
144 kernel_height * step_width * sizeof(void*), 0, in f16_dwconv()
Df32-im2col-gemm.cc40 const size_t kernel_height = state.range(2); in Im2ColGEMMBenchmark() local
42 const size_t kernel_size = kernel_height * kernel_width; in Im2ColGEMMBenchmark()
54 const size_t effective_kernel_height = (kernel_height - 1) * dilation + 1; in Im2ColGEMMBenchmark()
67 std::vector<float> k(group_output_channels * kernel_height * kernel_width * group_input_channels); in Im2ColGEMMBenchmark()
106 kernel_height, kernel_width, in Im2ColGEMMBenchmark()
139 kernel_height * kernel_width, in Im2ColGEMMBenchmark()
/external/XNNPACK/src/operators/
Dconvolution-nchw.c32 uint32_t kernel_height, in xnn_create_convolution2d_nchw_f32() argument
62 if (kernel_width == 0 || kernel_height == 0) { in xnn_create_convolution2d_nchw_f32()
65 … xnn_operator_type_to_string(xnn_operator_type_convolution_nchw_f32), kernel_width, kernel_height); in xnn_create_convolution2d_nchw_f32()
165 …const bool is_1x1 = kernel_width == 1 && kernel_height == 1 && subsampling_height == 1 && subsampl… in xnn_create_convolution2d_nchw_f32()
166 …const bool is_3x3 = kernel_width == 3 && kernel_height == 3 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32()
167 …const bool is_5x5 = kernel_width == 5 && kernel_height == 5 && dilation_height == 1 && dilation_wi… in xnn_create_convolution2d_nchw_f32()
206 …kernel_width, kernel_height, subsampling_width, subsampling_height, dilation_width, dilation_heigh… in xnn_create_convolution2d_nchw_f32()
229 assert(kernel_height == 1); in xnn_create_convolution2d_nchw_f32()
412 (group_input_channels * kernel_height * kernel_width + 1 /* bias */) * sizeof(float); in xnn_create_convolution2d_nchw_f32()
427 kernel_height, kernel_width, in xnn_create_convolution2d_nchw_f32()
[all …]
Ddeconvolution-nhwc.c36 uint32_t kernel_height, in create_deconvolution2d_nhwc() argument
77 if (kernel_width == 0 || kernel_height == 0) { in create_deconvolution2d_nhwc()
80 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_deconvolution2d_nhwc()
160 const uint32_t kernel_size = kernel_height * kernel_width; in create_deconvolution2d_nhwc()
163 …n_height, dilation_width) == 1 && stride_width <= kernel_width && stride_height <= kernel_height) { in create_deconvolution2d_nhwc()
181 const size_t subkernel_height = divide_round_up(kernel_height - offset_y, stride_height); in create_deconvolution2d_nhwc()
213 groups, group_output_channels, kernel_height, kernel_width, group_input_channels, in create_deconvolution2d_nhwc()
246 deconvolution_op->kernel_height = kernel_height; in create_deconvolution2d_nhwc()
293 uint32_t kernel_height, in xnn_create_deconvolution2d_nhwc_qs8() argument
365 kernel_height, kernel_width, in xnn_create_deconvolution2d_nhwc_qs8()
[all …]
Dconvolution-nhwc.c202 uint32_t kernel_height, in create_convolution2d_nhwc() argument
271 if (kernel_width == 0 || kernel_height == 0) { in create_convolution2d_nhwc()
274 xnn_operator_type_to_string(operator_type), kernel_width, kernel_height); in create_convolution2d_nhwc()
368 const size_t kernel_size = kernel_height * kernel_width; in create_convolution2d_nhwc()
447 kernel_height, kernel_width, in create_convolution2d_nhwc()
455 kernel_height, kernel_width, in create_convolution2d_nhwc()
624 convolution_op->kernel_height = kernel_height; in create_convolution2d_nhwc()
658 uint32_t kernel_height, in xnn_create_convolution2d_nhwc_qu8() argument
735 …find_dwconv_ukernel(kernel_height * kernel_width, xnn_params.qu8.dwconv, XNN_MAX_QU8_DWCONV_UKERNE… in xnn_create_convolution2d_nhwc_qu8()
743 kernel_height, kernel_width, in xnn_create_convolution2d_nhwc_qu8()
[all …]
/external/ComputeLibrary/src/core/
DUtils.cpp378 const unsigned int kernel_height = weights_shape[height_idx]; in calculate_same_pad() local
387 const int real_weight_height = (kernel_height - 1) * dilation.y() + 1; in calculate_same_pad()
402 …const auto out_dims = scaled_dimensions(in_width, in_height, kernel_width, kernel_height, same_inf… in calculate_same_pad()
410 … unsigned int kernel_width, unsigned int kernel_height, in deconvolution_output_dimensions() argument
422 ARM_COMPUTE_ERROR_ON(((in_height - 1) * stride_y + kernel_height) < (pad_top + pad_bottom)); in deconvolution_output_dimensions()
424 const int h = stride_y * (in_height - 1) + kernel_height - (pad_top + pad_bottom); in deconvolution_output_dimensions()
430 int kernel_width, int kernel_height, in scaled_dimensions() argument
448 …or((static_cast<float>(height + pad_top + pad_bottom - (dilation_y * (kernel_height - 1) + 1)) / s… in scaled_dimensions()
452 …il((static_cast<float>(height + pad_top + pad_bottom - (dilation_y * (kernel_height - 1) + 1)) / s… in scaled_dimensions()
464 int kernel_width, int kernel_height, in scaled_dimensions_signed() argument
[all …]
/external/XNNPACK/src/
Dindirection.c34 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_conv2d() local
45 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_conv2d()
55 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_deconv2d() local
105 const size_t kernel_size = kernel_height * kernel_width; in xnn_indirection_init_deconv2d()
117 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_deconv2d()
150 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_subconv2d() local
172 for (size_t kernel_y = offset_y; kernel_y < kernel_height; kernel_y += stride_height) { in xnn_indirection_init_subconv2d()
216 const size_t kernel_height = op->kernel_height; in xnn_indirection_init_dwconv2d() local
226 for (size_t kernel_y = 0; kernel_y < kernel_height; kernel_y++) { in xnn_indirection_init_dwconv2d()
[all …]
/external/ComputeLibrary/tests/validation/fixtures/
DDirectConvolution3DFixture.h46 …de_z, int pad_x, int pad_y, int pad_z, unsigned int kernel_width, int kernel_height, int kernel_de…
52 …const TensorShape weights_shape(num_kernels, input_shape[0], kernel_width, kernel_height, kernel_d…
161 …de_z, int pad_x, int pad_y, int pad_z, unsigned int kernel_width, int kernel_height, int kernel_de… in setup() argument
164 …:setup(input_shape, stride_x, stride_y, stride_z, pad_x, pad_y, pad_z, kernel_width, kernel_height, in setup()
174 …de_z, int pad_x, int pad_y, int pad_z, unsigned int kernel_width, int kernel_height, int kernel_de… in setup() argument
178 …:setup(input_shape, stride_x, stride_y, stride_z, pad_x, pad_y, pad_z, kernel_width, kernel_height, in setup()

1234