mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-04 04:07:22 +00:00
switch back order of session_state_ and execution_providers_ in InferenceSession.h (#2714)
This commit is contained in:
parent
7c0235c15a
commit
f0046a1531
1 changed files with 6 additions and 4 deletions
|
|
@ -377,10 +377,6 @@ class InferenceSession {
|
|||
// The file path of where the model was loaded. e.g. /tmp/test_squeezenet/model.onnx
|
||||
std::basic_string<ORTCHAR_T> model_location_;
|
||||
|
||||
// Immutable state for each op in the model. Shared by all executors.
|
||||
// It has a dependency on execution_providers_.
|
||||
std::unique_ptr<SessionState> session_state_;
|
||||
|
||||
private:
|
||||
ORT_DISALLOW_COPY_ASSIGNMENT_AND_MOVE(InferenceSession);
|
||||
|
||||
|
|
@ -457,6 +453,12 @@ class InferenceSession {
|
|||
// The list of execution providers.
|
||||
ExecutionProviders execution_providers_;
|
||||
|
||||
protected:
|
||||
// Immutable state for each op in the model. Shared by all executors.
|
||||
// It has a dependency on execution_providers_.
|
||||
std::unique_ptr<SessionState> session_state_;
|
||||
|
||||
private:
|
||||
// Threadpool for this session
|
||||
std::unique_ptr<onnxruntime::concurrency::ThreadPool> thread_pool_;
|
||||
std::unique_ptr<onnxruntime::concurrency::ThreadPool> inter_op_thread_pool_;
|
||||
|
|
|
|||
Loading…
Reference in a new issue