提交 4736281c 编写于 作者: Q qiaolongfei

restore

上级 47d9f64f
...@@ -135,11 +135,10 @@ bool PaddlePredictorImpl::Run(const std::vector<PaddleTensor> &inputs, ...@@ -135,11 +135,10 @@ bool PaddlePredictorImpl::Run(const std::vector<PaddleTensor> &inputs,
std::unique_ptr<PaddlePredictor> PaddlePredictorImpl::Clone() { std::unique_ptr<PaddlePredictor> PaddlePredictorImpl::Clone() {
VLOG(3) << "Predictor::clone"; VLOG(3) << "Predictor::clone";
std::unique_ptr<PaddlePredictor> cls(nullptr); std::unique_ptr<PaddlePredictor> cls(new PaddlePredictorImpl(config_));
if (!cls->InitShared()) { if (!cls->InitShared()) {
LOG(ERROR) << "fail to call InitShared"; LOG(ERROR) << "fail to call InitShared";
} else { return nullptr;
cls.reset(new PaddlePredictorImpl(config_));
} }
// fix manylinux compile error. // fix manylinux compile error.
return cls; return cls;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册