Skip to content

Commit b259fde

Browse files
Fix member access to xla backend. The correct member is client instead of backend
PiperOrigin-RevId: 699338495
1 parent 8699f5d commit b259fde

File tree

1 file changed

+1
-1
lines changed
  • jax/experimental/colocated_python

1 file changed

+1
-1
lines changed

jax/experimental/colocated_python/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def colocated_cpu_devices(
3232
raise NotImplementedError("Requires xla_extension_version >= 290")
3333

3434
cpu_devices_by_colocation_id = collections.defaultdict(list)
35-
for device in devices[0].backend._get_all_devices(): # pylint: disable=protected-access
35+
for device in devices[0].client._get_all_devices(): # pylint: disable=protected-access
3636
if device.device_kind == "cpu":
3737
cpu_devices_by_colocation_id[device.colocation_id].append(device)
3838
if not cpu_devices_by_colocation_id:

0 commit comments

Comments
 (0)