diff --git a/mindspore/lite/src/executor.cc b/mindspore/lite/src/executor.cc index bebdf2e493a..7b167fc7e1e 100644 --- a/mindspore/lite/src/executor.cc +++ b/mindspore/lite/src/executor.cc @@ -29,6 +29,10 @@ int Executor::Run(std::vector &in_tensors, std::vectorData() == nullptr) { + MS_LOG(ERROR) << "Graph input tensor data is nullptr"; + return RET_ERROR; + } if (inTensor->GetFormat() != schema::Format_NHWC) { MS_LOG(ERROR) << "Model input tensor should be NHWC"; return RET_ERROR;