Skip to content

Commit

Permalink
Fix incomplete cherry-pick for #16966
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli authored and lantiga committed Aug 30, 2023
1 parent 4a6ab85 commit efa83da
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lightning/fabric/strategies/xla.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ def remove_checkpoint(self, filepath: _PATH) -> None:
def register_strategies(cls, strategy_registry: _StrategyRegistry) -> None:
strategy_registry.register("xla", cls, description=cls.__class__.__name__)

def _set_world_ranks(self) -> None:
if self.cluster_environment is None:
return
rank_zero_only.rank = self.cluster_environment.global_rank()

@staticmethod
def _validate_dataloader(dataloader: object) -> None:
if not has_len(dataloader):
Expand Down

0 comments on commit efa83da

Please sign in to comment.