Skip to content

switch back order of session_state_ and execution_providers_ member declarations#2714

Merged
orilevari merged 1 commit intomasterfrom
user/orilevari/session_destructor_ordering
Dec 21, 2019
Merged

switch back order of session_state_ and execution_providers_ member declarations#2714
orilevari merged 1 commit intomasterfrom
user/orilevari/session_destructor_ordering

Conversation

@orilevari
Copy link
Contributor

Description: switches back the order of the session_state_ and execution_providers_ member declarations in InferenceSession

Motivation and Context
execution_providers_ is being destroyed before session_state_, and in some winml test cases this causes work to be queued on an executioncontext after it had already been closed which results in an assertion failure. It seems like the order of declaration for these member variables were swapped in this PR (#2449). This causes the order that these members are constructed and destroyed to swap as well, violating the dependency that session_state_ has on execution_providers_.

…enceSession.h to correct the order of the destructor calls since session_state_ has a dependency on execution_providers_
@orilevari orilevari requested a review from a team as a code owner December 20, 2019 23:04
@orilevari orilevari merged commit f0046a1 into master Dec 21, 2019
@orilevari orilevari deleted the user/orilevari/session_destructor_ordering branch December 21, 2019 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants