move env to .cc file

This commit is contained in:
Xueyun Zhu 2020-03-25 16:57:05 +00:00
parent e9877850a4
commit 9eb792a5b3
2 changed files with 2 additions and 3 deletions

View file

@ -967,6 +967,8 @@ PYBIND11_MODULE(onnxruntime_pybind11_state, m) {
#endif
}
// static variable used to create inference session and training session.
static std::unique_ptr<Environment> session_env;
void initialize_env(){
auto initialize = [&]() {

View file

@ -44,9 +44,6 @@ class SessionObjectInitializer {
}
};
// static variable used to create inference session and training session.
static std::unique_ptr<Environment> session_env;
void initialize_env();
Environment& get_env();
}