Home
last modified time | relevance | path

Searched refs:stride_h_ (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dpooling_infer.c52 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in PoolingInferShape()
57 output_h = ceil((float)(input_h) / (float)(param->stride_h_)); in PoolingInferShape()
58 int pad_h_all = ((output_h - 1) * param->stride_h_ + (window_h - 1) + 1 - input_h); in PoolingInferShape()
75 …tput_h = floor((float)(input_h + param->pad_u_ + param->pad_d_ - window_h) / param->stride_h_) + 1; in PoolingInferShape()
78 …utput_h = ceil((float)(input_h + param->pad_u_ + param->pad_d_ - window_h) / param->stride_h_) + 1; in PoolingInferShape()
Dpooling_grad_infer.c45 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in PoolingGradInferShape()
50 NNACL_CHECK_ZERO_RETURN_ERR(param->stride_h_); in PoolingGradInferShape()
52 int output_h = ceil((float)(input_h) / (float)(param->stride_h_)); in PoolingGradInferShape()
53 int pad_h_all = ((output_h - 1) * param->stride_h_ + (window_h - 1) + 1 - input_h); in PoolingGradInferShape()
Ddepthwise_conv2d_infer.c43 if (param->stride_h_ == 0 || param->stride_w_ == 0) { in DepthwiseConv2dInferShape()
49 output_h = ceil((float)(input_h) / (float)(param->stride_h_)); in DepthwiseConv2dInferShape()
51 …int pad_h_all = ((output_h - 1) * param->stride_h_ + (param->kernel_h_ - 1) * param->dilation_h_ +… in DepthwiseConv2dInferShape()
64 (float)(param->stride_h_)); in DepthwiseConv2dInferShape()
Dconv2d_infer.c23 int stride_h = param->stride_h_; 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/
Dconv1x1_fp32_tests.cc52 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/
Ddepthwise_conv2d_infer_test.cc47 parameter->stride_h_ = 1; in TEST_F()
93 parameter->stride_h_ = 2; in TEST_F()
139 parameter->stride_h_ = 1; in TEST_F()
186 parameter->stride_h_ = 2; in TEST_F()
233 parameter->stride_h_ = 2; in TEST_F()
280 parameter->stride_h_ = 1; in TEST_F()
327 parameter->stride_h_ = 1; in TEST_F()
374 parameter->stride_h_ = 1; in TEST_F()
421 parameter->stride_h_ = 1; in TEST_F()
468 parameter->stride_h_ = 1; in TEST_F()
[all …]
Dconv2d_infer_test.cc46 parameter->stride_h_ = 1; in TEST_F()
91 parameter->stride_h_ = 2; in TEST_F()
136 parameter->stride_h_ = 1; in TEST_F()
182 parameter->stride_h_ = 2; in TEST_F()
228 parameter->stride_h_ = 2; in TEST_F()
274 parameter->stride_h_ = 1; in TEST_F()
320 parameter->stride_h_ = 1; in TEST_F()
366 parameter->stride_h_ = 1; in TEST_F()
412 parameter->stride_h_ = 1; in TEST_F()
458 parameter->stride_h_ = 1; in TEST_F()
[all …]
Dpooling_infer_test.cc41 parameter->stride_h_ = 2; in TEST_F()
81 parameter->stride_h_ = 1; in TEST_F()
122 parameter->stride_h_ = 2; in TEST_F()
163 parameter->stride_h_ = 1; in TEST_F()
204 parameter->stride_h_ = 2; in TEST_F()
245 parameter->stride_h_ = 2; in TEST_F()
Ddeconv2d_infer_test.cc48 parameter->stride_h_ = 1; in TEST_F()
96 parameter->stride_h_ = 2; in TEST_F()
144 parameter->stride_h_ = 2; in TEST_F()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dpack_ext.c26 const int stride_h = conv_param->stride_h_; in RollingIm2ColPackDwUnitFp32()
76 const int stride_h = conv_param->stride_h_; in rolling_im2col_hwc()
147 const int stride_h = conv_param->stride_h_; in rolling_im2row_hwc()
195 const int stride_h = conv_param->stride_h_; in col2im_hwc()
243 const int stride_h = conv_param->stride_h_; in rolling_col2im_hwc()
Dconvolution_grad_filter.c52 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad16Arm()
129 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad12Arm()
199 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad8Arm()
257 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad4Arm()
307 int input_h = idx / out_w * conv_param->stride_h_; in Filtergrad2Arm()
365 int input_h = idx / out_w * conv_param->stride_h_; in ConvDwFilterGrad()
Dconvolution_grad_input.c53 int row_stride_offset = output_row * conv_param->stride_h_; in ConvDwInputGrad()
84 int row_stride_offset = output_row * conv_param->stride_h_; in ConvDwInputGrad()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/base/
Dconv_common_base.c25 … conv_param->stride_h_ == 1 && conv_param->dilation_h_ == 1 && conv_param->dilation_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/
Dconv_1x1_int8_tests.cc36 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/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/
Dconvolution_grad_filter.c59 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad32Arm()
132 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad16Arm()
189 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad8Arm()
238 int input_h = idx / out_w * conv_param->stride_h_; in FilterGrad4Arm()
287 int input_h = idx / out_w * conv_param->stride_h_; in FilterGradLeftoverArm()
346 int input_h = idx / out_w * conv_param->stride_h_; in ConvDwFilterFp16Grad()
Dpack_fp16_ext.c25 const int stride_h = conv_param->stride_h_; in RollingIm2ColPackDwUnitFp16()
75 const int stride_h = conv_param->stride_h_; in RollingIm2ColPackUnitFp16()
142 const int stride_h = conv_param->stride_h_; 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/src/runtime/kernel/arm/fp32/
Ddeconvolution_winograd_fp32.cc131 …deconv_param_->out_tile_h_ = (DECONV_WINOGRAD_DEFAULT_UNIT - 1) * conv_param_->stride_h_ + conv_pa… in InitParameter()
195 MS_CHECK_TRUE_RET(conv_param_->stride_h_ != 0, RET_ERROR); in InitComputeParam()
219 for (int si_h = 0; si_h < conv_param_->stride_h_; si_h++) { in InitComputeParam()
233 if (conv_param_->stride_h_ == 0 || conv_param_->stride_w_ == 0) { in InitComputeParam()
237 for (int si_h = 0; si_h < conv_param_->stride_h_; si_h++) { in InitComputeParam()
246 int h_size = 1 + (conv_param_->kernel_h_ - si_h - 1) / conv_param_->stride_h_; in InitComputeParam()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Dconv_depthwise_int8.c102 int ih_origin = oh * conv_param->stride_h_ - conv_param->pad_u_; in ConvDwInt8()
267 … right_shift_ptr, acc_min, acc_max, conv_param->stride_h_, filter_per_channel); in ConvDw3x3Int8Row()
282 … left_shift_ptr, right_shift_ptr, acc_min, acc_max, conv_param->stride_h_, filter_per_channel); in ConvDw3x3Int8Row()
293 conv_param->stride_h_, filter_per_channel); in ConvDw3x3Int8Row()
313 int start_ih = start_oh * conv_param->stride_h_ - conv_param->pad_u_; in ConvDw3x3Int8()
325 src += conv_param->stride_h_ * conv_param->input_w_ * conv_param->input_channel_; in ConvDw3x3Int8()
454 input = input_batch + (conv_param->stride_h_ - 1) * input_row_size; in ConvDw3x3Int8Pad()
461 input += conv_param->stride_h_ * input_row_size; in ConvDw3x3Int8Pad()
467 (conv_param->stride_h_ - 1) * input_row_size; in ConvDw3x3Int8Pad()
474 input += conv_param->stride_h_ * input_row_size; in ConvDw3x3Int8Pad()
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Ddeconvolution_winograd_fp16.cc143 …deconv_param_->out_tile_h_ = (DECONV_WINOGRAD_DEFAULT_UNIT - 1) * conv_param_->stride_h_ + conv_pa… in InitParameter()
242 MS_CHECK_TRUE_RET(conv_param_->stride_h_ != 0, RET_ERROR); in InitComputeParam()
266 for (int si_h = 0; si_h < conv_param_->stride_h_; si_h++) { in InitComputeParam()
280 for (int si_h = 0; si_h < conv_param_->stride_h_; si_h++) { in InitComputeParam()
289 int h_size = 1 + (conv_param_->kernel_h_ - si_h - 1) / conv_param_->stride_h_; in InitComputeParam()
/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()
156 …sliding->in_sh_step_ = conv_param->input_w_ * sliding->ic_align_ * conv_param->stride_h_; // st… in AppendSlidingParamConv()
171 …sliding->in_sh_step_ = conv_param->input_w_ * sliding->block_channel_ * conv_param->stride_h_; … in AppendSlidingParamConvDw()
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()
358 (conv_param->stride_h_ == 1 || conv_param->stride_h_ == 2) && in CheckConvDwUse3X3()
359 …(conv_param->stride_w_ == 1 || conv_param->stride_w_ == 2) && conv_param->stride_h_ == conv_param-… in CheckConvDwUse3X3()
365 const int in_h = (conv_param->output_h_ - 1) * conv_param->stride_h_ + conv_param->kernel_h_; in CheckConvDwUse3X3()
[all …]
/third_party/mindspore/mindspore/lite/src/ops/populate/
Dpooling_populate.cc88 param->stride_h_ = static_cast<int>(*(strides->begin())); in PopulateAvgPoolParameter()
144 param->stride_h_ = static_cast<int>(*(strides->begin())); in PopulateMaxPoolParameter()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Ddeconvolution_grad_fp32_tests.cc50 conv_param->stride_h_ = 2; in TEST_F()
158 conv_param->stride_h_ = 2; in TEST_F()
260 conv_param->stride_h_ = 2; in TEST_F()
367 conv_param->stride_h_ = 1; in TEST_F()
474 conv_param->stride_h_ = 2; in TEST_F()
581 conv_param->stride_h_ = 2; in TEST_F()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16_grad/
Dconvolution_fp16_grad_filter.cc59 …(conv_param->dilation_h_ == 1) && (conv_param->dilation_w_ == 1) && (conv_param->stride_h_ == 1) && in ReSize()
164 NNACL_CHECK_ZERO_RETURN_ERR(out_w * conv_param->stride_h_); in DoExecute()
173 int input_h = ci / out_w * conv_param->stride_h_; in DoExecute()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/
Dpooling_parameter.h37 int stride_h_; member

1234