Skip to content

Commit

Permalink
Make addressable_shards a property like local_shards
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 477358276
  • Loading branch information
yashk2810 authored and jax authors committed Sep 28, 2022
1 parent 9489068 commit 96a85bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jax/experimental/global_device_array.py
Expand Up @@ -394,6 +394,7 @@ def _create_local_shards(self) -> Sequence[Shard]:
def local_shards(self) -> Sequence[Shard]:
return self._create_local_shards()

@pxla.maybe_cached_property
def addressable_shards(self) -> Sequence[Shard]:
return self.local_shards

Expand Down

0 comments on commit 96a85bd

Please sign in to comment.