/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/ |
D | pooling_infer.c | 52 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in PoolingInferShape() 56 output_w = ceil((float)(input_w) / (float)(param->stride_w_)); in PoolingInferShape() 59 int pad_w_all = ((output_w - 1) * param->stride_w_ + (window_w - 1) + 1 - input_w); in PoolingInferShape() 76 …tput_w = floor((float)(input_w + param->pad_l_ + param->pad_r_ - window_w) / param->stride_w_) + 1; in PoolingInferShape() 79 …utput_w = ceil((float)(input_w + param->pad_l_ + param->pad_r_ - window_w) / param->stride_w_) + 1; in PoolingInferShape()
|
D | pooling_grad_infer.c | 45 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in PoolingGradInferShape() 49 NNACL_CHECK_ZERO_RETURN_ERR(param->stride_w_); in PoolingGradInferShape() 51 int output_w = ceil((float)(input_w) / (float)(param->stride_w_)); in PoolingGradInferShape() 54 int pad_w_all = ((output_w - 1) * param->stride_w_ + (window_w - 1) + 1 - input_w); in PoolingGradInferShape()
|
D | depthwise_conv2d_infer.c | 43 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in DepthwiseConv2dInferShape() 50 output_w = ceil((float)(input_w) / (float)(param->stride_w_)); in DepthwiseConv2dInferShape() 52 …int pad_w_all = ((output_w - 1) * param->stride_w_ + (param->kernel_w_ - 1) * param->dilation_w_ +… in DepthwiseConv2dInferShape() 67 (float)(param->stride_w_)); in DepthwiseConv2dInferShape()
|
D | conv2d_infer.c | 22 int stride_w = param->stride_w_; in ConvInferShape() 109 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in Conv2dInferShape()
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32/ |
D | conv1x1_fp32_tests.cc | 52 conv_param->stride_h_ = conv_param->stride_w_ = 4; in TEST_F() 93 conv_param->stride_h_ = conv_param->stride_w_ = 3; in TEST_F() 107 conv_param->stride_h_ = conv_param->stride_w_ = 2; in TEST_F() 126 conv_param->stride_h_ = conv_param->stride_w_ = 2; in TEST_F()
|
/third_party/mindspore/mindspore/lite/test/ut/nnacl/infer/ |
D | depthwise_conv2d_infer_test.cc | 48 parameter->stride_w_ = 1; in TEST_F() 94 parameter->stride_w_ = 2; in TEST_F() 140 parameter->stride_w_ = 1; in TEST_F() 187 parameter->stride_w_ = 2; in TEST_F() 234 parameter->stride_w_ = 2; in TEST_F() 281 parameter->stride_w_ = 1; in TEST_F() 328 parameter->stride_w_ = 1; in TEST_F() 375 parameter->stride_w_ = 1; in TEST_F() 422 parameter->stride_w_ = 1; in TEST_F() 469 parameter->stride_w_ = 1; in TEST_F() [all …]
|
D | conv2d_infer_test.cc | 47 parameter->stride_w_ = 1; in TEST_F() 92 parameter->stride_w_ = 2; in TEST_F() 137 parameter->stride_w_ = 1; in TEST_F() 183 parameter->stride_w_ = 2; in TEST_F() 229 parameter->stride_w_ = 2; in TEST_F() 275 parameter->stride_w_ = 1; in TEST_F() 321 parameter->stride_w_ = 1; in TEST_F() 367 parameter->stride_w_ = 1; in TEST_F() 413 parameter->stride_w_ = 1; in TEST_F() 459 parameter->stride_w_ = 1; in TEST_F() [all …]
|
D | pooling_infer_test.cc | 40 parameter->stride_w_ = 2; in TEST_F() 80 parameter->stride_w_ = 1; in TEST_F() 121 parameter->stride_w_ = 2; in TEST_F() 162 parameter->stride_w_ = 1; in TEST_F() 203 parameter->stride_w_ = 2; in TEST_F() 244 parameter->stride_w_ = 2; in TEST_F()
|
D | deconv2d_infer_test.cc | 49 parameter->stride_w_ = 1; in TEST_F() 97 parameter->stride_w_ = 2; in TEST_F() 145 parameter->stride_w_ = 2; in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/ |
D | pack_ext.c | 27 const int stride_w = conv_param->stride_w_; in RollingIm2ColPackDwUnitFp32() 77 const int stride_w = conv_param->stride_w_; in rolling_im2col_hwc() 148 const int stride_w = conv_param->stride_w_; in rolling_im2row_hwc() 196 const int stride_w = conv_param->stride_w_; in col2im_hwc() 244 const int stride_w = conv_param->stride_w_; in rolling_col2im_hwc()
|
D | convolution_grad_filter.c | 53 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad16Arm() 130 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad12Arm() 200 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad8Arm() 258 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad4Arm() 308 int input_w = idx % out_w * conv_param->stride_w_; in Filtergrad2Arm() 366 int input_w = idx % out_w * conv_param->stride_w_; in ConvDwFilterGrad()
|
D | convolution_grad_input.c | 54 int col_stride_offset = output_col * conv_param->stride_w_; in ConvDwInputGrad() 85 int col_stride_offset = output_col * conv_param->stride_w_; in ConvDwInputGrad()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | conv_depthwise_int8.c | 116 int in_sw_step = conv_param->stride_w_ * conv_param->input_channel_; in ConvDwInt8() 119 …param->pad_l_ - conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / conv_param->stride_w_); in ConvDwInt8() 121 … conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / in ConvDwInt8() 122 conv_param->stride_w_); in ConvDwInt8() 125 …int iw_origin = (out_w_start * conv_param->stride_w_) - conv_param->pad_l_ + conv_param->dilation_… in ConvDwInt8() 284 input += conv_param->stride_w_ * block_output_w * conv_param->input_channel_; in ConvDw3x3Int8Row() 308 int block_output_w = conv_param->stride_w_ == 1 ? 30 : 14; in ConvDw3x3Int8() 310 int block_input_w = conv_param->stride_w_ * (block_output_w - 1) + 3; in ConvDw3x3Int8() 314 int start_iw = start_ow * conv_param->stride_w_ - conv_param->pad_l_; in ConvDw3x3Int8() 441 input += (conv_param->stride_w_ - 1) * conv_param->input_channel_; in ConvDw3x3Int8Pad() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/ |
D | conv_depthwise_fp32.c | 37 if (conv_param->thread_num_ == 0 || conv_param->dilation_h_ == 0 || conv_param->stride_w_ == 0) { in ConvDw() 65 int in_sw_step = conv_param->stride_w_ * conv_param->input_channel_; in ConvDw() 68 …param->pad_l_ - conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / conv_param->stride_w_); in ConvDw() 70 … conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / in ConvDw() 71 conv_param->stride_w_); 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() 157 …sliding->in_sw_step_ = sliding->ic_align_ * conv_param->stride_w_; // st… in AppendSlidingParamConv() 172 …sliding->in_sw_step_ = sliding->block_channel_ * conv_param->stride_w_; … in AppendSlidingParamConvDw() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/ |
D | conv_common_base.c | 24 return conv_param->kernel_h_ == 3 && conv_param->kernel_w_ == 3 && conv_param->stride_w_ == 1 && in CheckConvDw1DWinograd() 87 conv_param->stride_h_ == 1 && conv_param->stride_w_ == 1 && conv_param->input_channel_ != 1) { in CheckIfUseWinograd()
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/int8/ |
D | conv_1x1_int8_tests.cc | 36 conv_param->stride_h_ = conv_param->stride_w_ = 2; in TEST_F() 63 conv_param->stride_h_ = conv_param->stride_w_ = 4; in TEST_F() 111 conv_param->stride_h_ = conv_param->stride_w_ = 1; in Conv1x1Int8TestInit1_perchannel() 180 conv_param->stride_h_ = conv_param->stride_w_ = 1; in Conv1x1Int8TestInit1() 257 conv_param->stride_h_ = conv_param->stride_w_ = 1; in Conv1x1Int8TestInit2()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/ |
D | deconvolution_winograd_fp32.cc | 130 …deconv_param_->out_tile_w_ = (DECONV_WINOGRAD_DEFAULT_UNIT - 1) * conv_param_->stride_w_ + conv_pa… in InitParameter() 196 MS_CHECK_TRUE_RET(conv_param_->stride_w_ != 0, RET_ERROR); in InitComputeParam() 220 for (int si_w = 0; si_w < conv_param_->stride_w_; si_w++) { in InitComputeParam() 233 if (conv_param_->stride_h_ == 0 || conv_param_->stride_w_ == 0) { in InitComputeParam() 241 for (int si_w = 0; si_w < conv_param_->stride_w_; si_w++) { in InitComputeParam() 247 int w_size = 1 + (conv_param_->kernel_w_ - si_w - 1) / conv_param_->stride_w_; in InitComputeParam()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/ |
D | convolution_grad_filter.c | 60 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad32Arm() 133 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad16Arm() 190 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad8Arm() 239 int input_w = idx % out_w * conv_param->stride_w_; in FilterGrad4Arm() 288 int input_w = idx % out_w * conv_param->stride_w_; in FilterGradLeftoverArm() 347 int input_w = idx % out_w * conv_param->stride_w_; in ConvDwFilterFp16Grad()
|
D | pack_fp16_ext.c | 26 const int stride_w = conv_param->stride_w_; in RollingIm2ColPackDwUnitFp16() 76 const int stride_w = conv_param->stride_w_; in RollingIm2ColPackUnitFp16() 143 const int stride_w = conv_param->stride_w_; in RollingCol2ImPackUnitFp16()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/ |
D | conv_depthwise_fp16.c | 400 NNACL_CHECK_ZERO_RETURN(conv_param->stride_w_); in ConvDwFp16() 425 int in_sw_step = conv_param->stride_w_ * conv_param->input_channel_; in ConvDwFp16() 428 …param->pad_l_ - conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / conv_param->stride_w_); in ConvDwFp16() 430 … conv_param->dilation_w_ * kw + conv_param->stride_w_ - 1) / in ConvDwFp16() 431 conv_param->stride_w_); in ConvDwFp16() 434 …int iw_origin = (out_w_start * conv_param->stride_w_) - conv_param->pad_l_ + conv_param->dilation_… in ConvDwFp16() 498 int iw = ow * conv_param->stride_w_ - conv_param->pad_l_; in DepthwiseBorderFp16() 597 int in_w_start = sliding->left_ * conv_param->stride_w_ - conv_param->pad_l_; in ConvDwC8Fp16() 656 int ow = iw * conv_param->stride_w_ - conv_param->pad_l_; in DeconvDepthwiseBorderFp16() 757 int oh_w_start = sliding->left_ * conv_param->stride_w_ - conv_param->pad_l_; in DeconvDwC8Fp16()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/ |
D | deconvolution_winograd_fp16.cc | 142 …deconv_param_->out_tile_w_ = (DECONV_WINOGRAD_DEFAULT_UNIT - 1) * conv_param_->stride_w_ + conv_pa… in InitParameter() 243 MS_CHECK_TRUE_RET(conv_param_->stride_w_ != 0, RET_ERROR); in InitComputeParam() 267 for (int si_w = 0; si_w < conv_param_->stride_w_; si_w++) { in InitComputeParam() 284 for (int si_w = 0; si_w < conv_param_->stride_w_; si_w++) { in InitComputeParam() 290 int w_size = 1 + (conv_param_->kernel_w_ - si_w - 1) / conv_param_->stride_w_; in InitComputeParam()
|
/third_party/mindspore/mindspore/lite/src/ops/populate/ |
D | pooling_populate.cc | 87 param->stride_w_ = static_cast<int>(*(strides->begin() + 1)); in PopulateAvgPoolParameter() 143 param->stride_w_ = static_cast<int>(*(strides->begin() + 1)); in PopulateMaxPoolParameter()
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/ |
D | deconvolution_grad_fp32_tests.cc | 51 conv_param->stride_w_ = 2; in TEST_F() 159 conv_param->stride_w_ = 2; in TEST_F() 261 conv_param->stride_w_ = 2; in TEST_F() 368 conv_param->stride_w_ = 1; in TEST_F() 475 conv_param->stride_w_ = 2; in TEST_F() 582 conv_param->stride_w_ = 2; in TEST_F()
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16_grad/ |
D | convolution_fp16_grad_filter.cc | 60 (conv_param->stride_w_ == 1) && (conv_param->group_ == 1) in ReSize() 165 NNACL_CHECK_ZERO_RETURN_ERR(out_w * conv_param->stride_w_); in DoExecute() 174 int input_w = ci % out_w * conv_param->stride_w_; in DoExecute()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/ |
D | pooling_parameter.h | 36 int stride_w_; member
|