Commit 8a81fb2
Fix CSE crash on string tensor attributes
The CSE optimizer crashed with ORT_ENFORCE when encountering a node
with a string tensor attribute (e.g., LabelEncoder with keys_tensor
of type STRING). Replace the enforce with an early return of hash 0,
treating such nodes as distinct (consistent with AreScalarTensorAttributeEqual).
Fixes #28413
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 46273ea commit 8a81fb2
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
0 commit comments