!7297 fix cpu square int32 type

Merge pull request !7297 from baihuawei/fixsquare
pull/7297/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 237270145c

@ -54,7 +54,7 @@ bool ArithmeticSelfCPUKernel::Launch(const std::vector<kernel::AddressPtr> &inpu
if (dtype_ == kNumberTypeFloat32) {
LaunchKernel<float>(inputs, outputs);
} else if (dtype_ == kNumberTypeInt32) {
LaunchKernel<float>(inputs, outputs);
LaunchKernel<int>(inputs, outputs);
} else {
MS_LOG(EXCEPTION) << "Only support float32, int32, but actual data type is " << TypeIdLabel(dtype_);
}

Loading…
Cancel
Save