Commit 6df070a
[ONNX][TOPI] Support select_last_index for argmin/max (#8816)
* support select_last_index for argmin/max
* reverse conditions which made on accident
* forward args in reduce.py
* make proper nodes for reduction ops
* remove complicated nested lambdas
* fix lambda capture for conversion
* forward more arguments
* forward more args
* enable onnx tests
* wrapping casts to remove ambiguity
* revert changes extraneous
* correct incorrect attrs being used for ops
* change attributes
* remove old impl
* register new attribute node
* clean up test
* reformat
* reformat
* coolio
* stable comparison
* casts to avoid ambiguity
* casting more
* correct arg passing
* support select_last_index for argmin/max
* reverse conditions which made on accident
* forward args in reduce.py
* make proper nodes for reduction ops
* remove complicated nested lambdas
* fix lambda capture for conversion
* forward more arguments
* forward more args
* enable onnx tests
* wrapping casts to remove ambiguity
* revert changes extraneous
* correct incorrect attrs being used for ops
* change attributes
* remove old impl
* register new attribute node
* clean up test
* reformat
* reformat
* coolio
* stable comparison
* casts to avoid ambiguity
* casting more
* correct arg passing
* fix broken input
* OneElementReduceAttrs-->ArgReduceAttrs"
* reduce boilerplate
* change names
* remove log statement
* jostle ci
Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>1 parent 9a9cd70 commit 6df070a
File tree
9 files changed
+245
-87
lines changed- include/tvm
- relay/attrs
- topi
- python/tvm
- relay
- frontend
- op
- topi
- src
- relay/op/tensor
- topi
- tests/python
- frontend/onnx
- relay
9 files changed
+245
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
64 | 100 | | |
65 | 101 | | |
66 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
434 | 473 | | |
435 | 474 | | |
436 | 475 | | |
| |||
442 | 481 | | |
443 | 482 | | |
444 | 483 | | |
| 484 | + | |
| 485 | + | |
445 | 486 | | |
446 | 487 | | |
447 | 488 | | |
448 | 489 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
464 | 493 | | |
465 | 494 | | |
466 | | - | |
467 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
468 | 498 | | |
469 | | - | |
470 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
471 | 523 | | |
472 | 524 | | |
473 | | - | |
| 525 | + | |
474 | 526 | | |
475 | 527 | | |
476 | 528 | | |
| |||
490 | 542 | | |
491 | 543 | | |
492 | 544 | | |
493 | | - | |
| 545 | + | |
| 546 | + | |
494 | 547 | | |
495 | 548 | | |
496 | 549 | | |
497 | | - | |
498 | | - | |
| 550 | + | |
| 551 | + | |
499 | 552 | | |
500 | 553 | | |
501 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
51 | | - | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
| 1789 | + | |
1792 | 1790 | | |
1793 | 1791 | | |
1794 | | - | |
| 1792 | + | |
| 1793 | + | |
1795 | 1794 | | |
1796 | 1795 | | |
1797 | 1796 | | |
1798 | 1797 | | |
1799 | 1798 | | |
1800 | 1799 | | |
1801 | 1800 | | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
| 1801 | + | |
1805 | 1802 | | |
1806 | 1803 | | |
1807 | | - | |
| 1804 | + | |
| 1805 | + | |
1808 | 1806 | | |
1809 | 1807 | | |
1810 | 1808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
85 | | - | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
192 | | - | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | | - | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
216 | 224 | | |
217 | | - | |
| 225 | + | |
218 | 226 | | |
219 | 227 | | |
220 | 228 | | |
| |||
0 commit comments