Commit f6ba547
authored
fix: Correct aten::split behavior when negative indexing is applied (#1403)
- Identify issue arising in the deepset/roberta-base-squad2 HuggingFace
network (https://huggingface.co/deepset/roberta-base-squad2) during
conversion
- Bug involves the use of a negative index (-1) when applying the
aten::split operator
- Improved axis handling in add_split to account for negative indexing
- Improved error handling in add_split to ensure valid axes for C++
indexing1 parent 5a7ac8f commit f6ba547
File tree
2 files changed
+42
-7
lines changed- core/conversion/converters/impl
- tests/core/conversion/converters
2 files changed
+42
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | | - | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
277 | | - | |
| 283 | + | |
| 284 | + | |
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
742 | 770 | | |
743 | 771 | | |
744 | 772 | | |
| |||
1109 | 1137 | | |
1110 | 1138 | | |
1111 | 1139 | | |
1112 | | - | |
| 1140 | + | |
0 commit comments