Home
last modified time | relevance | path

Searched refs:new_bias_size (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Dconv2d_3x3_int8_coder.cc65 int new_bias_size = oC4 * C4NUM * sizeof(int32_t); in InitWeightBias() local
66 …new_bias_addr_ = static_cast<int32_t *>(allocator_->Malloc(kNumberTypeInt32, new_bias_size, kOffli… in InitWeightBias()
68 …MS_CHECK_RET_CODE(memset_s(new_bias_addr_, new_bias_size, 0, new_bias_size), "memset_s new_bias_ad… in InitWeightBias()
71 …MS_CHECK_RET_CODE(memcpy_s(new_bias_addr_, new_bias_size, ori_bias_addr, output_channel * sizeof(i… in InitWeightBias()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dconvolution_winograd_fp32.cc233 size_t new_bias_size = UP_ROUND(out_channel, C4NUM) * sizeof(float); in MallocWeightBiasData() local
235 bias_data_ = malloc(new_bias_size); in MallocWeightBiasData()
241 memset(bias_data_, 0, new_bias_size); in MallocWeightBiasData()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dconvolution_3x3_int8.cc114 size_t new_bias_size = oC4 * C4NUM * sizeof(int32_t); in InitWeightBias() local
115 bias_data_ = reinterpret_cast<int32_t *>(malloc(new_bias_size)); in InitWeightBias()
120 memset(bias_data_, 0, new_bias_size); in InitWeightBias()
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/
Dconv_conv_fusion.cc87 int new_bias_size = down_weight_shape[0]; in GenNewConvBias() local
88 …auto tensor_info = lite::CreateTensorInfo(nullptr, 0, {new_bias_size}, up_bias_param->data_type()); in GenNewConvBias()
95 if (memset_s(new_bias_data, tensor_info->Size(), 0, new_bias_size * sizeof(float)) != EOK) { in GenNewConvBias()
100 for (int i = 0; i < new_bias_size; i++) { in GenNewConvBias()