Home
last modified time | relevance | path

Searched refs:pad_u_ (Results 1 – 25 of 86) sorted by relevance

1234

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dpooling_infer.c61 param->pad_u_ = param->pad_d_ = 0; in PoolingInferShape()
63 param->pad_u_ = pad_h_all / 2; in PoolingInferShape()
64 param->pad_d_ = pad_h_all - param->pad_u_; in PoolingInferShape()
75 …output_h = floor((float)(input_h + param->pad_u_ + param->pad_d_ - window_h) / param->stride_h_) +… in PoolingInferShape()
78 …output_h = ceil((float)(input_h + param->pad_u_ + param->pad_d_ - window_h) / param->stride_h_) + … in PoolingInferShape()
Dconv2d_infer.c39 param->pad_u_ = param->pad_d_ = 0; in ConvInferShape()
41 param->pad_u_ = pad_h_all / 2; in ConvInferShape()
42 param->pad_d_ = pad_h_all - param->pad_u_; in ConvInferShape()
53 …*output_h = ceil(((float)(input_h) + param->pad_u_ + param->pad_d_ - ((float)(kernel_h)-1) * (floa… in ConvInferShape()
59 *output_h = ((input_h) + param->pad_u_ + param->pad_d_ - kernel_height) / stride_h + 1; in ConvInferShape()
62 if (param->kernel_h_ > input_h + param->pad_u_ + param->pad_d_ || in ConvInferShape()
Dpooling_grad_infer.c56 param->pad_u_ = param->pad_d_ = 0; in PoolingGradInferShape()
58 param->pad_u_ = pad_h_all / 2; in PoolingGradInferShape()
59 param->pad_d_ = pad_h_all - param->pad_u_; in PoolingGradInferShape()
Ddepthwise_conv2d_infer.c54 param->pad_u_ = pad_h_all / 2; in DepthwiseConv2dInferShape()
55 param->pad_d_ = pad_h_all - param->pad_u_; in DepthwiseConv2dInferShape()
62 output_h = ceil(((float)(input_h) + param->pad_u_ + param->pad_d_ - in DepthwiseConv2dInferShape()
Ddeconv2d_infer.c72 …output_h = (input_h - 1) * stride_h + ((kernel_h - 1) * dilate_h + 1) - param->pad_u_ - param->pad… in Deconv2dInferShape()
94 param->pad_u_ = ((input_h - 1) * stride_h + (kernel_h - 1) * dilate_h + 1 - output_h) / 2; in Deconv2dInferShape()
97 param->pad_u_ = 0; in Deconv2dInferShape()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/
Dconv1x1_fp32_tests.cc53 conv_param->pad_u_ = conv_param->pad_l_ = 2; in TEST_F()
94 conv_param->pad_u_ = conv_param->pad_l_ = 0; in TEST_F()
108 conv_param->pad_u_ = conv_param->pad_l_ = 1; in TEST_F()
127 conv_param->pad_u_ = conv_param->pad_l_ = 1; in TEST_F()
/third_party/mindspore/mindspore/lite/test/ut/nnacl/infer/
Ddepthwise_conv2d_infer_test.cc54 parameter->pad_u_ = 1; in TEST_F()
100 parameter->pad_u_ = 3; in TEST_F()
147 parameter->pad_u_ = 1; in TEST_F()
194 parameter->pad_u_ = 1; in TEST_F()
241 parameter->pad_u_ = 0; in TEST_F()
288 parameter->pad_u_ = 0; in TEST_F()
335 parameter->pad_u_ = 0; in TEST_F()
382 parameter->pad_u_ = 4; in TEST_F()
429 parameter->pad_u_ = 0; in TEST_F()
476 parameter->pad_u_ = 0; in TEST_F()
[all …]
Dconv2d_infer_test.cc53 parameter->pad_u_ = 1; in TEST_F()
98 parameter->pad_u_ = 3; in TEST_F()
144 parameter->pad_u_ = 1; in TEST_F()
190 parameter->pad_u_ = 1; in TEST_F()
236 parameter->pad_u_ = 0; in TEST_F()
282 parameter->pad_u_ = 0; in TEST_F()
328 parameter->pad_u_ = 0; in TEST_F()
374 parameter->pad_u_ = 4; in TEST_F()
420 parameter->pad_u_ = 0; in TEST_F()
466 parameter->pad_u_ = 0; in TEST_F()
[all …]
Dpooling_infer_test.cc43 parameter->pad_u_ = 0; in TEST_F()
83 parameter->pad_u_ = 0; in TEST_F()
124 parameter->pad_u_ = 0; in TEST_F()
165 parameter->pad_u_ = 0; in TEST_F()
206 parameter->pad_u_ = 0; in TEST_F()
247 parameter->pad_u_ = 0; in TEST_F()
Ddeconv2d_infer_test.cc56 parameter->pad_u_ = 1; in TEST_F()
104 parameter->pad_u_ = 1; in TEST_F()
152 parameter->pad_u_ = 0; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dpack_ext.c24 const int pad_up = conv_param->pad_u_; in RollingIm2ColPackDwUnitFp32()
74 const int pad_up = conv_param->pad_u_; in rolling_im2col_hwc()
145 const int pad_up = conv_param->pad_u_; in rolling_im2row_hwc()
193 const int pad_up = conv_param->pad_u_; in col2im_hwc()
241 const int pad_up = conv_param->pad_u_; in rolling_col2im_hwc()
Dconvolution_grad_filter.c54 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad16Arm()
131 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad12Arm()
201 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad8Arm()
259 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad4Arm()
309 int input_row = -conv_param->pad_u_ + i_kh + input_h; in Filtergrad2Arm()
367 int input_row = -conv_param->pad_u_ + i_kh + input_h; in ConvDwFilterGrad()
Dconvolution_grad_input.c57 … int input_row = -conv_param->pad_u_ + kernel_row * conv_param->dilation_h_ + row_stride_offset; in ConvDwInputGrad()
89 … int input_row = -conv_param->pad_u_ + kernel_row * conv_param->dilation_h_ + row_stride_offset; in ConvDwInputGrad()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/
Dconv_1x1_int8_tests.cc37 conv_param->pad_u_ = conv_param->pad_l_ = 1; in TEST_F()
64 conv_param->pad_u_ = conv_param->pad_l_ = 2; in TEST_F()
113 conv_param->pad_u_ = conv_param->pad_l_ = 0; in Conv1x1Int8TestInit1_perchannel()
182 conv_param->pad_u_ = conv_param->pad_l_ = 0; in Conv1x1Int8TestInit1()
259 conv_param->pad_u_ = conv_param->pad_l_ = 0; in Conv1x1Int8TestInit2()
/third_party/mindspore/mindspore/lite/src/ops/populate/
Dconv2d_populate.cc81 param->pad_u_ = 0; in PopulateConvParameter()
86 param->pad_u_ = static_cast<int>(*(pad_list->begin())); in PopulateConvParameter()
Ddeconv2d_populate.cc94 param->pad_u_ = 0; in PopulateDeconvParameter()
99 param->pad_u_ = static_cast<int>(*(pad_list->begin())); in PopulateDeconvParameter()
Dpooling_populate.cc91 param->pad_u_ = static_cast<int>(*(pad->begin())); in PopulateAvgPoolParameter()
147 param->pad_u_ = static_cast<int>(*(pad->begin())); in PopulateMaxPoolParameter()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/
Dconvolution_grad_filter.c61 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad32Arm()
134 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad16Arm()
191 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad8Arm()
240 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGrad4Arm()
289 int input_row = -conv_param->pad_u_ + i_kh + input_h; in FilterGradLeftoverArm()
348 int input_row = -conv_param->pad_u_ + i_kh + input_h; in ConvDwFilterFp16Grad()
Dpack_fp16_ext.c23 const int pad_up = conv_param->pad_u_; in RollingIm2ColPackDwUnitFp16()
73 const int pad_up = conv_param->pad_u_; in RollingIm2ColPackUnitFp16()
140 const int pad_up = conv_param->pad_u_; in RollingCol2ImPackUnitFp16()
Dconvolution_grad_input.c50 int row_stride_offset = -conv_param->pad_u_ + output_row * conv_param->stride_h_; in ConvDwInputGrad16()
156 int row_stride_offset = -conv_param->pad_u_ + output_row * conv_param->stride_h_; in ConvDwInputGrad8()
239 int row_stride_offset = -conv_param->pad_u_ + output_row * conv_param->stride_h_; in ConvDwInputGrad4()
315 int row_stride_offset = -conv_param->pad_u_ + output_row * conv_param->stride_h_; in ConvDwInputGradFp16()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Ddeconvolution_grad_fp32_tests.cc56 conv_param->pad_u_ = 1; in TEST_F()
164 conv_param->pad_u_ = 1; in TEST_F()
266 conv_param->pad_u_ = 1; in TEST_F()
373 conv_param->pad_u_ = 1; in TEST_F()
480 conv_param->pad_u_ = 1; in TEST_F()
587 conv_param->pad_u_ = 1; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dpooling_parameter.h47 int pad_u_; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/
Dconv1x1_base.c24 int src_h = dst_h * conv_param->stride_h_ - conv_param->pad_u_; in Conv1x1InputPack()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dconv_depthwise_fp32.c51 int ih_origin = oh * conv_param->stride_h_ - conv_param->pad_u_; in ConvDw()
111 while (top * conv_param->stride_h_ < conv_param->pad_u_) { in InitSlidingParam()
114 …while ((bottom - 1) * conv_param->stride_h_ - conv_param->pad_u_ + conv_param->kernel_h_ * conv_pa… in InitSlidingParam()
215 int ih = oh * conv_param->stride_h_ - conv_param->pad_u_; in ConvDwBorder()
329 int in_h_start = sliding->top_ * conv_param->stride_h_ - conv_param->pad_u_; in ConvDwSWFp32()
360 …(conv_param->pad_u_ == 0 || conv_param->pad_u_ == 1) && (conv_param->pad_l_ == 0 || conv_param->pa… in CheckConvDwUse3X3()
361 …conv_param->pad_u_ == conv_param->pad_l_ && conv_param->dilation_h_ == 1 && conv_param->dilation_w… in CheckConvDwUse3X3()
367 return in_h == (conv_param->input_h_ + 2 * conv_param->pad_u_) && in CheckConvDwUse3X3()
742 int ih = oh * conv_param->stride_h_ + kh * conv_param->dilation_h_ - conv_param->pad_u_; in ConvDwInitIndirection()
900 int oh = ih * conv_param->stride_h_ - conv_param->pad_u_; in DeconvDwBorder()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dpooling_int8.c25 int pad_h = pooling_param->pad_u_; in AvgPoolingInt8()
109 int in_h_index = out_h_index * pooling_param->stride_h_ - pooling_param->pad_u_; in AvgPoolingOptInt8()
281 int pad_h = pooling_param->pad_u_; in MaxPoolingInt8()
356 int in_h_index = out_h_index * pooling_param->stride_h_ - pooling_param->pad_u_; in MaxPoolingWithQuantInt8()
445 int in_h_index = out_h_index * pooling_param->stride_h_ - pooling_param->pad_u_; in MaxPoolingOptInt8()

1234