!46096 fix scale int8 bug

Merge pull request !46096 from liyan2022/master_codex
This commit is contained in:
i-robot 2022-12-04 13:19:06 +00:00 committed by Gitee
commit 31926f2131
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -218,8 +218,8 @@ int ScaleInt8CPUKernel::Prepare() {
if (tensor->data_type() != TypeId::kNumberTypeInt8) {
MS_LOG(ERROR) << " in tensors type to scale_int8 should be int8, but type id " << tensor->data_type()
<< " is given";
return RET_ERROR;
}
return RET_ERROR;
}
if (!InferShapeDone()) {