diff --git a/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc index 1dd14aff227..9cd9d8b6ac4 100644 --- a/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc +++ b/mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc @@ -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()) {