eric-haibin-lin closed pull request #12614: fix bug, issue 12613
URL: https://github.com/apache/incubator-mxnet/pull/12614
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/executor/graph_executor.cc b/src/executor/graph_executor.cc
index 54a8d224ff4..922917f7947 100644
--- a/src/executor/graph_executor.cc
+++ b/src/executor/graph_executor.cc
@@ -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() {
diff --git a/src/executor/graph_executor.h b/src/executor/graph_executor.h
index b94bb437778..f5f032e3f2e 100644
--- a/src/executor/graph_executor.h
+++ b/src/executor/graph_executor.h
@@ -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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services