Commit 5fbd2c9
[pmap] In-line definitions of
Both `jax.device_put_sharded` and `jax.device_put_replicated` were deprecated in JAX v0.8.1 in November 2025. We in-line their definitions using public JAX APIs taking the `jax_pmap_shmap_merge=True` branch, which was made the default in JAX v0.8.0 in October 2025.
Please see the below for more information:
- JAX CHANGELOG: https://docs.jax.dev/en/latest/changelog.html
- Migrating from `jax.pmap`: https://docs.jax.dev/en/latest/migrate_pmap.html
PiperOrigin-RevId: 897706398jax.device_put_sharded and jax.device_put_replicated.1 parent 665905f commit 5fbd2c9
3 files changed
Lines changed: 37 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| |||
401 | 413 | | |
402 | 414 | | |
403 | 415 | | |
404 | | - | |
405 | | - | |
| 416 | + | |
406 | 417 | | |
407 | 418 | | |
408 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
| |||
1214 | 1226 | | |
1215 | 1227 | | |
1216 | 1228 | | |
1217 | | - | |
| 1229 | + | |
1218 | 1230 | | |
1219 | 1231 | | |
1220 | 1232 | | |
| |||
1242 | 1254 | | |
1243 | 1255 | | |
1244 | 1256 | | |
1245 | | - | |
| 1257 | + | |
1246 | 1258 | | |
1247 | 1259 | | |
1248 | 1260 | | |
| |||
1251 | 1263 | | |
1252 | 1264 | | |
1253 | 1265 | | |
1254 | | - | |
| 1266 | + | |
1255 | 1267 | | |
1256 | 1268 | | |
1257 | 1269 | | |
| |||
1352 | 1364 | | |
1353 | 1365 | | |
1354 | 1366 | | |
1355 | | - | |
| 1367 | + | |
1356 | 1368 | | |
1357 | 1369 | | |
1358 | 1370 | | |
| |||
1366 | 1378 | | |
1367 | 1379 | | |
1368 | 1380 | | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1373 | 1385 | | |
1374 | 1386 | | |
1375 | 1387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
554 | 557 | | |
555 | 558 | | |
556 | 559 | | |
| |||
0 commit comments