From 04ea7cb069184a60e6965c407607538d0dfd933d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Wed, 12 Jun 2019 15:45:27 +0800 Subject: [PATCH] modify the access level of anakin engine (#18015) test=develop --- paddle/fluid/inference/api/api_anakin_engine.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/paddle/fluid/inference/api/api_anakin_engine.h b/paddle/fluid/inference/api/api_anakin_engine.h index 32f8def63c0..0f0d7febe2e 100644 --- a/paddle/fluid/inference/api/api_anakin_engine.h +++ b/paddle/fluid/inference/api/api_anakin_engine.h @@ -58,18 +58,18 @@ class PaddleInferenceAnakinPredictor : public PaddlePredictor { ~PaddleInferenceAnakinPredictor() override; - static std::mutex mutex_; - AnakinConfig config_; - std::shared_ptr> ctx_p_; - std::shared_ptr> graph_p_; - anakin::Net* executor_p_{nullptr}; - + protected: void InitEnv(); void InitGraph(); virtual void OptimizeGraph(); virtual void InitNet(); virtual void SetContext(); virtual void Predict(); + static std::mutex mutex_; + AnakinConfig config_; + std::shared_ptr> ctx_p_; + std::shared_ptr> graph_p_; + anakin::Net* executor_p_{nullptr}; private: bool RunImpl(const std::vector& inputs, -- GitLab