Browse Source

!6886 [MS][LITE][GPU]optimize GPU benchmark performance

Merge pull request !6886 from chenzupeng/master-lite
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
a4366b0aab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/lite/src/executor.cc

+ 1
- 1
mindspore/lite/src/executor.cc View File

@@ -28,7 +28,7 @@ int Executor::Run(std::vector<Tensor *> &in_tensors, std::vector<Tensor *> &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;
}


Loading…
Cancel
Save