From a8e7e283a8bb8425bb7e66a5e1a99cb525ff55f1 Mon Sep 17 00:00:00 2001 From: kswang Date: Wed, 23 Sep 2020 09:28:37 +0800 Subject: [PATCH] fix infer tensor compile error --- include/infer_tensor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/infer_tensor.h b/include/infer_tensor.h index 2ba04a1803..3a8b203b3e 100644 --- a/include/infer_tensor.h +++ b/include/infer_tensor.h @@ -76,7 +76,8 @@ class InferTensorBase { } auto ret = memcpy_s(mutable_data(), data_size(), data, data_len); if (ret != 0) { - MS_LOG(EXCEPTION) << "Set data memcpy_s failed"; + MSI_LOG_ERROR << "Set data memcpy_s failed"; + return false; } return true; }