!45748 fix a bug of conv2d_grad_input_gpu_kernel
Merge pull request !45748 from hanhuifeng/fix_conv_grad_input_bug
This commit is contained in:
commit
9a0a3bd4a9
|
@ -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();
|
||||
|
|
|
@ -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<int64_t> input_shape_;
|
||||
static constexpr size_t kShapeIndex_{2};
|
||||
|
|
Loading…
Reference in New Issue