File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
pytorch/trainer/connectors Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ def _lazy_init_strategy(self) -> None:
516
516
self .strategy .precision = self .precision
517
517
if self .checkpoint_io :
518
518
self .strategy .checkpoint_io = self .checkpoint_io
519
- if hasattr (self .strategy , "cluster_environment" ) and self . strategy . cluster_environment is None :
519
+ if hasattr (self .strategy , "cluster_environment" ):
520
520
self .strategy .cluster_environment = self .cluster_environment
521
521
if hasattr (self .strategy , "parallel_devices" ):
522
522
if self .strategy .parallel_devices :
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ def _lazy_init_strategy(self) -> None:
582
582
self .strategy .precision_plugin = self .precision_plugin
583
583
if self .checkpoint_io :
584
584
self .strategy .checkpoint_io = self .checkpoint_io
585
- if hasattr (self .strategy , "cluster_environment" ) and self . strategy . cluster_environment is None :
585
+ if hasattr (self .strategy , "cluster_environment" ):
586
586
self .strategy .cluster_environment = self .cluster_environment
587
587
if hasattr (self .strategy , "parallel_devices" ):
588
588
if self .strategy .parallel_devices :
You can’t perform that action at this time.
0 commit comments