mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
move env to .cc file
This commit is contained in:
parent
e9877850a4
commit
9eb792a5b3
2 changed files with 2 additions and 3 deletions
|
|
@ -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 = [&]() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue