Skip to content

Commit

Permalink
fix bug, issue 12613 (apache#12614)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovickie authored and eric-haibin-lin committed Sep 26, 2018
1 parent 3042825 commit d4e202a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/executor/graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ GraphExecutor::GraphExecutor() {
log_verbose_ = dmlc::GetEnv("MXNET_EXEC_VERBOSE_LOGGING", false);
need_grad_ = false;
subgraph_property_ = dmlc::GetEnv("MXNET_SUBGRAPH_BACKEND", std::string());
engine_ref_ = Engine::_GetSharedRef();
}

GraphExecutor::~GraphExecutor() {
Expand Down
2 changes: 2 additions & 0 deletions src/executor/graph_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ class GraphExecutor : public Executor {
bool log_verbose_ = false;
// subgraph property name
std::string subgraph_property_;
// ref of engine
std::shared_ptr<Engine> engine_ref_;
};

} // namespace exec
Expand Down

0 comments on commit d4e202a

Please sign in to comment.