!9081 int32->int64 support

From: @yepei6
Reviewed-by: @kingxian,@zh_qh
Signed-off-by: @kingxian
pull/9081/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit cf0bca06eb

@ -114,7 +114,7 @@ class BatchNormFold2GradGpuKernel : public GpuKernel {
channel_ = input_shape[1];
height_ = input_shape[2];
width_ = input_shape[3];
freeze_bn_ = GetValue<int32_t>(AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("freeze_bn"));
freeze_bn_ = GetValue<int64_t>(AnfAlgo::GetCNodePrimitive(kernel_node)->GetAttr("freeze_bn"));
InitSizeLists();
return true;

Loading…
Cancel
Save