Skip to content

Commit a85033a

Browse files
awaelchlilexierule
authored andcommitted
1.5.8 release commit
1 parent 15f524b commit a85033a

File tree

1 file changed

+1
-1
lines changed
  • pytorch_lightning/utilities

1 file changed

+1
-1
lines changed

pytorch_lightning/utilities/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def setup(self, trainer: Trainer, pl_module: LightningModule, stage: Optional[st
404404
# check if the file exists on rank 0
405405
file_exists = fs.isfile(config_path) if trainer.is_global_zero else False
406406
# broadcast whether to fail to all ranks
407-
file_exists = trainer.strategy.broadcast(file_exists)
407+
file_exists = trainer.accelerator.broadcast(file_exists)
408408
if file_exists:
409409
raise RuntimeError(
410410
f"{self.__class__.__name__} expected {config_path} to NOT exist. Aborting to avoid overwriting"

0 commit comments

Comments
 (0)