Commit 3de4283
Fix Windows PermissionError in test_patch_merger
Replace tempfile-based ONNX save/load with in-memory protobuf
serialization to avoid Windows concurrent file access errors.
Use ir.serde.serialize_model() + SerializeToString() to load
the model directly into ORT InferenceSession without disk I/O.
Closes #159
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Ti-Tai Wang <titaiwang@microsoft.com>1 parent ec3455b commit 3de4283
1 file changed
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
0 commit comments