Commit e30a7c1
committed
Fix uninitialised _outputNames in ETCoreMLModelProfiler
The _outputNames property was not initialised in initWithModel:configuration:error:,
causing set_model_outputs() to produce an empty array when debug_buffer_size=0.
This led to an NSRangeException (index 0 beyond bounds for empty array) in
ETCoreMLModelManager when accessing modelOutputs[0].shape for dynamic shape resizing.
When debug_buffer_size > 0, the bug was masked because the debugging path
(debugModelWithInputs) overwrote the empty profiling output with valid results.1 parent 4afd7f9 commit e30a7c1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
0 commit comments