!7297 fix cpu square int32 type

Merge pull request !7297 from baihuawei/fixsquare
This commit is contained in:
mindspore-ci-bot 2020-10-15 17:00:24 +08:00 committed by Gitee
commit 237270145c
1 changed files with 1 additions and 1 deletions

View File

@ -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_);
}