From f606c7e79e42ec53ff0d7771bd3de8c5469c69f2 Mon Sep 17 00:00:00 2001 From: chenzupeng Date: Fri, 25 Sep 2020 15:24:33 +0800 Subject: [PATCH] optimize GPU performance --- mindspore/lite/src/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/lite/src/executor.cc b/mindspore/lite/src/executor.cc index 62948814bb..93efdcfaf8 100644 --- a/mindspore/lite/src/executor.cc +++ b/mindspore/lite/src/executor.cc @@ -28,7 +28,7 @@ int Executor::Run(std::vector &in_tensors, std::vector &out_ MS_LOG(ERROR) << "Graph input tensor is nullptr"; return RET_ERROR; } - if (inTensor->MutableData() == nullptr) { + if (inTensor->data_c() == nullptr) { MS_LOG(ERROR) << "Graph input tensor data is nullptr"; return RET_ERROR; }