diff --git a/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.cc b/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.cc index bc30bf8e668..61a8e67bcf0 100644 --- a/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.cc +++ b/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.cc @@ -407,7 +407,6 @@ void ConvGradInputBkwGpuKernelMod::ResetResource() noexcept { padded_size_ = 0; workspace_size_ = 0; use_pad_ = false; - beta_ = 0; input_size_list_.clear(); output_size_list_.clear(); workspace_size_list_.clear(); diff --git a/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.h b/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.h index 8a984ea87ab..aa26072c9b7 100644 --- a/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.h +++ b/mindspore/ccsrc/plugin/device/gpu/kernel/nn/conv2d_grad_input_gpu_kernel.h @@ -116,7 +116,7 @@ class ConvGradInputBkwGpuKernelMod : public NativeGpuKernelMod, public MatchKern size_t padded_size_; size_t workspace_size_; bool use_pad_; - float beta_; + float beta_{0}; bool get_dynamic_attr_value_{false}; std::vector input_shape_; static constexpr size_t kShapeIndex_{2};