Skip to content

Commit

Permalink
[SPMD] Fix TPU CI after #5478 (#5487)
Browse files Browse the repository at this point in the history
* [SPMD] Fix TPU CI after #5478

Summary:
Let's fix all TPU CI failures after #5478.

Test Plan:
TPU CI

* Fix linters
  • Loading branch information
alanwaketan authored Aug 23, 2023
1 parent a2fab36 commit 8a98a88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/pjrt/test_runtime_tpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ def test_global_runtime_device_attributes(self):
results = pjrt.run_multiprocess(self._global_runtime_device_attributes)
for result in results.values():
for device in result:
self.assertCountEqual(['coords', 'core_on_chip'], list(device.keys()))
self.assertCountEqual(['coords', 'core_on_chip', 'name'],
list(device.keys()))
self.assertIsInstance(device['coords'], list)
self.assertIsInstance(device['core_on_chip'], int)
self.assertIsInstance(device['name'], str)

@staticmethod
def _execute_time_metric():
Expand Down

0 comments on commit 8a98a88

Please sign in to comment.