diff --git a/lite/api/cxx_api.cc b/lite/api/cxx_api.cc index 3fcaaac65be82e062cb554a596fb82b531b258ba..d3e1e56c4d8048dcfb88180ca872d0f790cca84a 100644 --- a/lite/api/cxx_api.cc +++ b/lite/api/cxx_api.cc @@ -318,7 +318,7 @@ const lite::Tensor *Predictor::GetTensor(const std::string &name) const { return &var->Get(); } -lite::Tensor *Predictor::GetMutableTensor(const std::string &name) const { +lite::Tensor *Predictor::GetMutableTensor(const std::string &name) { auto *var = exec_scope_->FindVar(name); CHECK(var) << "no variable named with " << name << " in exec_scope"; return var->GetMutable();