Update horovod.py (#11917)
This commit is contained in:
parent
d902b59886
commit
4dba492fb5
|
@ -85,7 +85,7 @@ class HorovodStrategy(ParallelStrategy):
|
|||
self._exit_stack = ExitStack()
|
||||
self._exit_stack.__enter__()
|
||||
|
||||
if not self.lightning_module.trainer.training:
|
||||
if not trainer.training:
|
||||
# no need to setup optimizers
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue