Commit 283f1d3
authored
Write parameters based on output shapes not the amount of names (#26092)
Running into a case where the amount of names being larger than inputs
from the MIGraphX program causes us to go out of bounds and try to index
outputs that don't exist. This leads to undefined/broken behavior
(faults)
### Description
<!-- Describe your changes. -->
This fixes an out of bounds condition that occurs when output_names()
errornoursly is used to bind size of the amount of inputs used for
setting parameters in MIGraphX EP
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Seeing this in some cases for user data1 parent 8b81d9b commit 283f1d3
File tree
1 file changed
+1
-1
lines changed- onnxruntime/core/providers/migraphx
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | | - | |
| 1376 | + | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
| |||
0 commit comments