Skip to content

Commit cd5c898

Browse files
committed
modify the access level of class
test=develop
1 parent d332127 commit cd5c898

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

paddle/fluid/inference/api/api_anakin_engine.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ class PaddleInferenceAnakinPredictor : public PaddlePredictor {
5858

5959
~PaddleInferenceAnakinPredictor() override;
6060

61-
static std::mutex mutex_;
62-
AnakinConfig config_;
63-
std::shared_ptr<anakin::Context<T>> ctx_p_;
64-
std::shared_ptr<anakin::graph::Graph<T, P>> graph_p_;
65-
anakin::Net<T, P, R>* executor_p_{nullptr};
66-
61+
protected:
6762
void InitEnv();
6863
void InitGraph();
6964
virtual void OptimizeGraph();
7065
virtual void InitNet();
7166
virtual void SetContext();
7267
virtual void Predict();
68+
static std::mutex mutex_;
69+
AnakinConfig config_;
70+
std::shared_ptr<anakin::Context<T>> ctx_p_;
71+
std::shared_ptr<anakin::graph::Graph<T, P>> graph_p_;
72+
anakin::Net<T, P, R>* executor_p_{nullptr};
7373

7474
private:
7575
bool RunImpl(const std::vector<PaddleTensor>& inputs,

0 commit comments

Comments
 (0)