Commit c6440a7
Fix dynamic shape missing Symbol errors (#16390)
Summary:
Handle edge case of the range constraints of mixed Symbol + int where the replacement does not have the key.
E.g. {s11: VR[2, 32], s11 + 2048: VR[2050, 2080]}
The replacements only have key "s11" due to "s11 + 2048" is merged to s11. This is needed to the StaticAttention attention class that the attention mask append the dynamic seq_len at the last dimension.
Dynamic shapes and mixed symbol are required for the CoreML enumerated shapes as the precursor for ET enabled CoreML enumerated shape
Reviewed By: kimishpatel
Differential Revision: D897541331 parent 31ec75e commit c6440a7
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
0 commit comments