Repository navigation
Commit c5f2f17
authored
[MLX]: Add flip op handler for mlx backend (pytorch#22173)
### Summary
Add flip op handler for the mlx backend. Implemented it with the flip
handler in the [MLX op
library](https://ml-explore.github.io/mlx/build/html/cpp/ops.html#_CPPv44flipRK5arrayRKNSt6vectorIiEE14StreamOrDevice).
Fixes pytorch#19609
### Test plan
Wrote a test model for Flip and wrote a FlipTest with it. Tested it
with:
```
python3 -m executorch.backends.mlx.test.run_all_tests --rebuild flip
```
I have an M3 pro so I was able to run the tests1 parent 4663da6 commit c5f2f17
4 files changed
Lines changed: 76 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
5453 | 5454 | | |
5454 | 5455 | | |
5455 | 5456 | | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
5456 | 5479 | | |
5457 | 5480 | | |
5458 | 5481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
840 | 845 | | |
841 | 846 | | |
842 | 847 | | |
| |||
2162 | 2167 | | |
2163 | 2168 | | |
2164 | 2169 | | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2165 | 2173 | | |
2166 | 2174 | | |
2167 | 2175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1059 | 1065 | | |
1060 | 1066 | | |
1061 | 1067 | | |
| |||
1198 | 1204 | | |
1199 | 1205 | | |
1200 | 1206 | | |
| 1207 | + | |
1201 | 1208 | | |
1202 | 1209 | | |
1203 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8587 | 8587 | | |
8588 | 8588 | | |
8589 | 8589 | | |
| 8590 | + | |
| 8591 | + | |
| 8592 | + | |
| 8593 | + | |
| 8594 | + | |
| 8595 | + | |
| 8596 | + | |
| 8597 | + | |
| 8598 | + | |
| 8599 | + | |
| 8600 | + | |
| 8601 | + | |
| 8602 | + | |
| 8603 | + | |
| 8604 | + | |
| 8605 | + | |
| 8606 | + | |
| 8607 | + | |
| 8608 | + | |
| 8609 | + | |
| 8610 | + | |
| 8611 | + | |
| 8612 | + | |
| 8613 | + | |
| 8614 | + | |
| 8615 | + | |
| 8616 | + | |
| 8617 | + | |
| 8618 | + | |
| 8619 | + | |
| 8620 | + | |
| 8621 | + | |
| 8622 | + | |
| 8623 | + | |
| 8624 | + | |
| 8625 | + | |
| 8626 | + | |
| 8627 | + | |
0 commit comments