Commit 19614f0
authored
Avoid empty temp external initializer file creation inside the call (#25188)
### Description
While EPContext model generation is enabled and some Nodes fallback on CPU. If the CPU nodes depend on external data. ORT force all external data to be embedded into new generated EPContext model by default. Ort
used to create a dummy externa initializer file with maximum size threshold to force all initializer data dump into generated Onnx model file. Internally, a "./model_ext_ini.bin" file is created and got removed at the end of the call. It causes problem if multiple session doing the same thing.
This fix is to avoid creating the temp empty external initializer file by adding a flag to force all external data to be embedded into new generated EPContext model.1 parent 00c20c8 commit 19614f0
File tree
4 files changed
+54
-19
lines changed- include/onnxruntime/core/graph
- onnxruntime
- core
- framework
- graph
- test/providers/qnn
4 files changed
+54
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
914 | 915 | | |
915 | | - | |
| 916 | + | |
| 917 | + | |
916 | 918 | | |
917 | | - | |
| 919 | + | |
918 | 920 | | |
919 | 921 | | |
920 | 922 | | |
| 923 | + | |
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4345 | 4345 | | |
4346 | 4346 | | |
4347 | 4347 | | |
4348 | | - | |
| 4348 | + | |
| 4349 | + | |
4349 | 4350 | | |
4350 | 4351 | | |
4351 | 4352 | | |
| |||
4441 | 4442 | | |
4442 | 4443 | | |
4443 | 4444 | | |
4444 | | - | |
4445 | | - | |
4446 | | - | |
4447 | | - | |
| 4445 | + | |
| 4446 | + | |
4448 | 4447 | | |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
4449 | 4454 | | |
4450 | 4455 | | |
4451 | 4456 | | |
4452 | 4457 | | |
4453 | 4458 | | |
4454 | 4459 | | |
4455 | | - | |
4456 | | - | |
4457 | | - | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
4458 | 4464 | | |
4459 | | - | |
4460 | | - | |
4461 | | - | |
4462 | | - | |
| 4465 | + | |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
4463 | 4470 | | |
4464 | 4471 | | |
4465 | 4472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
791 | 806 | | |
792 | 807 | | |
793 | 808 | | |
| |||
803 | 818 | | |
804 | 819 | | |
805 | 820 | | |
806 | | - | |
| 821 | + | |
807 | 822 | | |
808 | 823 | | |
809 | 824 | | |
810 | 825 | | |
811 | 826 | | |
812 | | - | |
813 | | - | |
| 827 | + | |
| 828 | + | |
814 | 829 | | |
815 | 830 | | |
816 | 831 | | |
817 | 832 | | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
818 | 840 | | |
819 | 841 | | |
820 | 842 | | |
| |||
0 commit comments