Home
last modified time | relevance | path

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

1234

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dpooling_infer.c67 param->pad_l_ = param->pad_r_ = 0; in PoolingInferShape()
69 param->pad_l_ = pad_w_all / 2; in PoolingInferShape()
70 param->pad_r_ = pad_w_all - param->pad_l_; in PoolingInferShape()
76 …output_w = floor((float)(input_w + param->pad_l_ + param->pad_r_ - window_w) / param->stride_w_) +… in PoolingInferShape()
79 …output_w = ceil((float)(input_w + param->pad_l_ + param->pad_r_ - window_w) / param->stride_w_) + … in PoolingInferShape()
Dconv2d_infer.c45 param->pad_l_ = param->pad_r_ = 0; in ConvInferShape()
47 param->pad_l_ = pad_w_all / 2; in ConvInferShape()
48 param->pad_r_ = pad_w_all - param->pad_l_; in ConvInferShape()
51 …*output_w = ceil(((float)(input_w) + param->pad_l_ + param->pad_r_ - ((float)(kernel_w)-1) * (floa… in ConvInferShape()
58 *output_w = ((input_w) + param->pad_l_ + param->pad_r_ - kernel_width) / stride_w + 1; in ConvInferShape()
63 param->kernel_w_ > input_w + param->pad_l_ + param->pad_r_) { in ConvInferShape()
Dpooling_grad_infer.c62 param->pad_l_ = param->pad_r_ = 0; in PoolingGradInferShape()
64 param->pad_l_ = pad_w_all / 2; in PoolingGradInferShape()
65 param->pad_r_ = pad_w_all - param->pad_l_; in PoolingGradInferShape()
Ddepthwise_conv2d_infer.c58 param->pad_l_ = pad_w_all / 2; in DepthwiseConv2dInferShape()
59 param->pad_r_ = pad_w_all - param->pad_l_; in DepthwiseConv2dInferShape()
65 output_w = ceil(((float)(input_w) + param->pad_l_ + param->pad_r_ - in DepthwiseConv2dInferShape()
Ddeconv2d_infer.c73 …output_w = (input_w - 1) * stride_w + ((kernel_w - 1) * dilate_w + 1) - param->pad_l_ - param->pad… in Deconv2dInferShape()
95 param->pad_l_ = ((input_w - 1) * stride_w + (kernel_w - 1) * dilate_w + 1 - output_w) / 2; in Deconv2dInferShape()
98 param->pad_l_ = 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.cc51 parameter->pad_l_ = 1; in TEST_F()
97 parameter->pad_l_ = 3; in TEST_F()
144 parameter->pad_l_ = 1; in TEST_F()
191 parameter->pad_l_ = 1; in TEST_F()
238 parameter->pad_l_ = 0; in TEST_F()
285 parameter->pad_l_ = 0; in TEST_F()
332 parameter->pad_l_ = 0; in TEST_F()
379 parameter->pad_l_ = 0; in TEST_F()
426 parameter->pad_l_ = 0; in TEST_F()
473 parameter->pad_l_ = 0; in TEST_F()
[all …]
Dconv2d_infer_test.cc50 parameter->pad_l_ = 1; in TEST_F()
95 parameter->pad_l_ = 3; in TEST_F()
141 parameter->pad_l_ = 1; in TEST_F()
187 parameter->pad_l_ = 1; in TEST_F()
233 parameter->pad_l_ = 0; in TEST_F()
279 parameter->pad_l_ = 0; in TEST_F()
325 parameter->pad_l_ = 0; in TEST_F()
371 parameter->pad_l_ = 0; in TEST_F()
417 parameter->pad_l_ = 0; in TEST_F()
463 parameter->pad_l_ = 0; in TEST_F()
[all …]
Dpooling_infer_test.cc46 parameter->pad_l_ = 0; in TEST_F()
86 parameter->pad_l_ = 0; in TEST_F()
127 parameter->pad_l_ = 0; in TEST_F()
168 parameter->pad_l_ = 0; in TEST_F()
209 parameter->pad_l_ = 0; in TEST_F()
250 parameter->pad_l_ = 0; in TEST_F()
Ddeconv2d_infer_test.cc53 parameter->pad_l_ = 1; in TEST_F()
101 parameter->pad_l_ = 1; in TEST_F()
149 parameter->pad_l_ = 0; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dpack_ext.c23 const int pad_left = conv_param->pad_l_; in RollingIm2ColPackDwUnitFp32()
73 const int pad_left = conv_param->pad_l_; in rolling_im2col_hwc()
144 const int pad_left = conv_param->pad_l_; in rolling_im2row_hwc()
192 const int pad_left = conv_param->pad_l_; in col2im_hwc()
240 const int pad_left = conv_param->pad_l_; in rolling_col2im_hwc()
Dconvolution_grad_filter.c55 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad16Arm()
132 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad12Arm()
202 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad8Arm()
260 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad4Arm()
310 int input_col = -conv_param->pad_l_ + i_kw + input_w; in Filtergrad2Arm()
368 int input_col = -conv_param->pad_l_ + i_kw + input_w; in ConvDwFilterGrad()
Dconvolution_grad_input.c58 … int input_col = -conv_param->pad_l_ + kernel_col * conv_param->dilation_w_ + col_stride_offset; in ConvDwInputGrad()
90 … int input_col = -conv_param->pad_l_ + kernel_col * conv_param->dilation_w_ + col_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.cc83 param->pad_l_ = 0; in PopulateConvParameter()
88 param->pad_l_ = static_cast<int>(*(pad_list->begin() + kOffsetTwo)); in PopulateConvParameter()
Ddeconv2d_populate.cc96 param->pad_l_ = 0; in PopulateDeconvParameter()
101 param->pad_l_ = static_cast<int>(*(pad_list->begin() + kOffsetTwo)); in PopulateDeconvParameter()
Dpooling_populate.cc93 param->pad_l_ = static_cast<int>(*(pad->begin() + kOffsetTwo)); in PopulateAvgPoolParameter()
149 param->pad_l_ = static_cast<int>(*(pad->begin() + kOffsetTwo)); in PopulateMaxPoolParameter()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/
Dconvolution_grad_filter.c62 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad32Arm()
135 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad16Arm()
192 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad8Arm()
241 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGrad4Arm()
290 int input_col = -conv_param->pad_l_ + i_kw + input_w; in FilterGradLeftoverArm()
349 int input_col = -conv_param->pad_l_ + i_kw + input_w; in ConvDwFilterFp16Grad()
Dpack_fp16_ext.c22 const int pad_left = conv_param->pad_l_; in RollingIm2ColPackDwUnitFp16()
72 const int pad_left = conv_param->pad_l_; in RollingIm2ColPackUnitFp16()
139 const int pad_left = conv_param->pad_l_; in RollingCol2ImPackUnitFp16()
Dconvolution_grad_input.c51 int col_stride_offset = -conv_param->pad_l_ + output_col * conv_param->stride_w_; in ConvDwInputGrad16()
157 int col_stride_offset = -conv_param->pad_l_ + output_col * conv_param->stride_w_; in ConvDwInputGrad8()
240 int col_stride_offset = -conv_param->pad_l_ + output_col * conv_param->stride_w_; in ConvDwInputGrad4()
316 int col_stride_offset = -conv_param->pad_l_ + output_col * conv_param->stride_w_; in ConvDwInputGradFp16()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dconv_depthwise_fp32.c68 …0, (conv_param->pad_l_ - conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / conv_param->s… in ConvDw()
69 int out_w_end = MSMIN(conv_param->output_w_, (conv_param->input_w_ + conv_param->pad_l_ - in ConvDw()
74 …int iw_origin = (out_w_start * conv_param->stride_w_) - conv_param->pad_l_ + conv_param->dilation_… in ConvDw()
103 while (left * conv_param->stride_w_ < conv_param->pad_l_) { in InitSlidingParam()
106 …while ((right - 1) * conv_param->stride_w_ - conv_param->pad_l_ + conv_param->kernel_w_ * conv_par… in InitSlidingParam()
222 int iw = ow * conv_param->stride_w_ - conv_param->pad_l_; in ConvDwBorder()
330 int in_w_start = sliding->left_ * conv_param->stride_w_ - conv_param->pad_l_; in ConvDwSWFp32()
360 …am->pad_u_ == 0 || conv_param->pad_u_ == 1) && (conv_param->pad_l_ == 0 || conv_param->pad_l_ == 1… in CheckConvDwUse3X3()
361 …conv_param->pad_u_ == conv_param->pad_l_ && conv_param->dilation_h_ == 1 && conv_param->dilation_w… in CheckConvDwUse3X3()
368 in_w == (conv_param->input_w_ + 2 * conv_param->pad_l_); in CheckConvDwUse3X3()
[all …]
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Ddeconvolution_grad_fp32_tests.cc57 conv_param->pad_l_ = 1; in TEST_F()
165 conv_param->pad_l_ = 1; in TEST_F()
267 conv_param->pad_l_ = 1; in TEST_F()
374 conv_param->pad_l_ = 1; in TEST_F()
481 conv_param->pad_l_ = 1; in TEST_F()
588 conv_param->pad_l_ = 1; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dpooling_parameter.h49 int pad_l_; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/
Dconv1x1_base.c31 int src_w = dst_w * conv_param->stride_w_ - conv_param->pad_l_; in Conv1x1InputPack()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dconv2d.cc193 …KW_ == 1 && param_->stride_w_ == 1 && param_->dilation_w_ == 1 && param_->pad_l_ == 0 && param_->p… in SetBlockSize()
434 cl_int4 pad = {param_->pad_u_, param_->pad_d_, param_->pad_l_, param_->pad_r_}; in SetConstArgs()
581 … param->pad_u_ == 0 && param->pad_d_ == 0 && param->pad_l_ == 0 && param->pad_r_ == 0 && in UseFcReplaceConv()
621 …bool pad_is_all_0 = param->pad_u_ == 0 && param->pad_d_ == 0 && param->pad_l_ == 0 && param->pad_r… in UseWinograd4x4To6x6()
622 …bool pad_is_all_1 = param->pad_u_ == 1 && param->pad_d_ == 1 && param->pad_l_ == 1 && param->pad_r… in UseWinograd4x4To6x6()

1234