Commit 30cf0e7
[MPS] Copy fixes for MPS backend (#95321)
* [MPS] Handle broadcasting by expanding src tensor in Copy.mm (#95272)
Fixes #ISSUE_NUMBER
Pull Request resolved: #95272
Approved by: https://github.com/DenisVieriu97
* [MPS] Fix copy_cast_mps() on tensors with storage offset (#95093)
- The copy_cast path requires storage_offset to be applied before casting
- This should fix some correctness issues in transformer models
Fixes #94980
Pull Request resolved: #95093
Approved by: https://github.com/kulinseth
---------
Co-authored-by: Ramin Azarmehr <razarmehr@apple.com>1 parent 96f627d commit 30cf0e7
2 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
285 | | - | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| 303 | + | |
| 304 | + | |
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
305 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
306 | 314 | | |
307 | 315 | | |
308 | | - | |
| 316 | + | |
309 | 317 | | |
310 | 318 | | |
311 | | - | |
| 319 | + | |
312 | 320 | | |
313 | 321 | | |
314 | 322 | | |
315 | | - | |
| 323 | + | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
1789 | 1798 | | |
1790 | 1799 | | |
1791 | 1800 | | |
| |||
9304 | 9313 | | |
9305 | 9314 | | |
9306 | 9315 | | |
| 9316 | + | |
9307 | 9317 | | |
9308 | 9318 | | |
9309 | 9319 | | |
| |||
0 commit comments