From a3e44549039f820208b886093d40fdbd9b009162 Mon Sep 17 00:00:00 2001 From: albert-yan Date: Sat, 26 Nov 2022 22:45:36 +0800 Subject: [PATCH] fix scale int8 bug --- mindspore/lite/src/litert/kernel/cpu/int8/scale_int8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {