Commit 29c4f43
Fix the power mode issue for the case that run from context model (#23330)
### Description
Set power config id and the default power mode from provider option (if there is) for main thread, otherwise it will mess up the power mode if user just create session without run it.
The issue fixed by this PR is:
Process 1 just creates the session without run it.
Then, start process 2 which creates the session and run it with power saver mode. The result is with burst power mode.1 parent 7c8b06e commit 29c4f43
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
710 | 716 | | |
711 | 717 | | |
712 | 718 | | |
| |||
905 | 911 | | |
906 | 912 | | |
907 | 913 | | |
908 | | - | |
909 | 914 | | |
910 | 915 | | |
911 | 916 | | |
| |||
0 commit comments