forked from mindspore-Ecosystem/mindspore
!47625 fix renorm gpu kernel bug
Merge pull request !47625 from liubuyu/bug_fix
This commit is contained in:
commit
f5c5189f35
|
@ -106,6 +106,10 @@ void RenormGpuKernelMod::InitParams() {
|
|||
if (dim_ < 0) {
|
||||
dim_ += shape_size;
|
||||
}
|
||||
axis_size_ = 1;
|
||||
inner_size_ = 1;
|
||||
stride_size_ = 1;
|
||||
total_size_ = 1;
|
||||
for (size_t i = 0; i < shape_size; ++i) {
|
||||
if (SizeToLong(i) == dim_) {
|
||||
axis_size_ *= input_shape_[i];
|
||||
|
|
Loading…
Reference in New Issue