Skip to content

Commit 93def62

Browse files
committed
Merge global_device_attributes
1 parent a4ff53b commit 93def62

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/pjrt/test_runtime_tpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ def test_device_attributes(self):
207207

208208
@staticmethod
209209
def _global_device_attributes():
210-
return pjrt.global_device_attributes()
210+
return xr.global_device_attributes()
211211

212212
def test_global_device_attributes(self):
213-
results = pjrt._run_multiprocess(self._global_device_attributes)
213+
results = pjrt.run_multiprocess(self._global_device_attributes)
214214
for result in results.values():
215215
for device in result:
216216
self.assertCountEqual(['coords', 'core_on_chip'], list(device.keys()))

torch_xla/experimental/pjrt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
runtime.addressable_device_count,
1010
runtime.device_attributes,
1111
runtime.device_type,
12+
runtime.global_device_attributes,
1213
runtime.global_device_count,
1314
runtime.global_ordinal,
1415
runtime.local_device_count,

0 commit comments

Comments
 (0)