Home
last modified time | relevance | path

Searched refs:save_var (Results 1 – 15 of 15) sorted by relevance

/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16_grad/
Dbn_fp16_grad.cc92 float16_t *save_var = reinterpret_cast<float16_t *>(input_var->data()); in DoExecute() local
93 CHECK_NULL_RETURN(save_var); in DoExecute()
121 var2InvarFp16(save_var, input_var->ElementsNum(), bn_param->epsilon_); in DoExecute()
135 …backwardAllFp16(x, yt, save_mean, save_var, scale, total, channels, dxhat_sum, dxhathat_sum, dbias… in DoExecute()
140 …backwardP1Fp16(x, yt, save_mean, save_var, scale, total, channels, dxhat_sum, dxhathat_sum, dbias,… in DoExecute()
144 …Fp16(x + task_id * stride * channels, yt + task_id * stride * channels, save_mean, save_var, scale, in DoExecute()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32_grad/
Dbn_grad.cc92 float *save_var = reinterpret_cast<float *>(input_var->MutableData()); in Execute() local
93 CHECK_NULL_RETURN(save_var); in Execute()
134 var2Invar(save_var, input_var->ElementsNum(), bn_param->epsilon_); in Execute()
148 …backwardAll(x, yt, save_mean, save_var, scale, total, channels, dxhat_sum, dxhathat_sum, dbias, ds… in Execute()
153 …backwardP1(x, yt, save_mean, save_var, scale, total, channels, dxhat_sum, dxhathat_sum, dbias, dsc… in Execute()
157 …+ task_id * stride * channels, yt + task_id * stride * channels, save_mean, save_var, scale, count, in Execute()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dbatchnorm_fp32.c63 float *save_mean, float *save_var) { in FusedBatchNormFp32MeanVar() argument
88 save_var[c] = momentum * save_var[c] + (1.0f - momentum) * unbiased_var; in FusedBatchNormFp32MeanVar()
Dbatchnorm_fp32.h32 float *save_mean, float *save_var);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/
Dbatch_norm.c20 void var2InvarFp16(float16_t *save_var, int size, float eps) { in var2InvarFp16() argument
22 save_var[i] = (float16_t)(1.0f / sqrtf((float)save_var[i] + eps)); in var2InvarFp16()
Dbatch_norm.h26 void var2InvarFp16(float16_t *save_var, int size, float eps);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dbatch_norm.c20 void var2Invar(float *save_var, int size, float eps) { in var2Invar() argument
22 save_var[i] = 1.0f / sqrt(save_var[i] + eps); in var2Invar()
Dbatch_norm.h31 void var2Invar(float *save_var, int size, float eps);
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbatch_norm_relu_grad_fusion.cc82 auto save_var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 4); in Process() local
83 MS_EXCEPTION_IF_NULL(save_var); in Process()
93 …std::vector<AnfNodePtr> inputs = {NewValueNode(prim), dy, x, scale, save_mean, save_var, reserve, … in Process()
Dbatch_norm_add_relu_grad_fusion.cc179 auto save_var = AnfAlgo::GetInputNode(utils::cast<CNodePtr>(node), 4); in Process() local
180 MS_EXCEPTION_IF_NULL(save_var); in Process()
194 …std::vector<AnfNodePtr> inputs = {NewValueNode(prim), dy, x, scale, save_mean, save_var, reserve, … in Process()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dbatchnorm_fp16.c62 … const BatchNormParameter *param, float16_t *save_mean, float16_t *save_var) { in FusedBatchNormFp16MeanVar() argument
87 save_var[c] = (float16_t)(momentum * (float)save_var[c] + (1.0f - momentum) * unbiased_var); in FusedBatchNormFp16MeanVar()
Dbatchnorm_fp16.h30 … const BatchNormParameter *param, float16_t *save_mean, float16_t *save_var);
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dfused_batchnorm_fp32.cc121 float *save_var = static_cast<float *>(in_tensors_.at(FIFTH_INPUT)->data()); in Eval() local
125 CHECK_NULL_RETURN(save_var); in Eval()
133 memcpy(variance_, save_var, in_tensors_.at(FIFTH_INPUT)->Size()); in Eval()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Dfused_batchnorm_fp16.cc147 float16_t *save_var = static_cast<float16_t *>(in_tensors_.at(kInCurrentVarIdx)->data()); in Eval() local
151 CHECK_NULL_RETURN(save_var); in Eval()
159 memcpy(variance_, save_var, in_tensors_.at(kInCurrentVarIdx)->Size()); in Eval()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Dbn_grad_fp32_test.cc185 float *save_var = reinterpret_cast<float *>(save_var_tensor.MutableData()); in TEST_F() local
187 save_var[i] = 1.f; in TEST_F()