From 0606818291a9ca5a6bd8e56e8a0fdc1d85f97e6f Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 30 May 2018 13:28:40 +0800 Subject: [PATCH] rm ste::move when return a unique_ptr in inference --- paddle/contrib/inference/paddle_inference_api_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/contrib/inference/paddle_inference_api_impl.cc b/paddle/contrib/inference/paddle_inference_api_impl.cc index e7a0b341dda..349bd3b4036 100644 --- a/paddle/contrib/inference/paddle_inference_api_impl.cc +++ b/paddle/contrib/inference/paddle_inference_api_impl.cc @@ -141,7 +141,7 @@ std::unique_ptr PaddlePredictorImpl::Clone() { return nullptr; } // fix manylinux compile error. - return std::move(cls); + return cls; } // TODO(panyx0718): Consider merge with Init()? -- GitLab