Commit cc1edfa
Skip shape inference when outputs already have static type/shape
When constant propagation has already determined the type and static
shape of all node outputs, skip the expensive ONNX shape inference
call. Only skip when shapes are fully static (all dims are concrete
integers); dynamic/symbolic dims still benefit from inference.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent df5b723 commit cc1edfa
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
| |||
0 commit comments