Update horovod.py (#11917)

This commit is contained in:
ananthsub 2022-02-16 21:58:54 -08:00 committed by GitHub
parent d902b59886
commit 4dba492fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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