Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Sep 15, 2022
1 parent 75e38c4 commit 55ce21b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pytorch_lightning/lite/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ def step(self, closure: Optional[Callable] = None, module: Optional["_LiteModule
closure = closure or _do_nothing_closure
return self._strategy.optimizer_step(
self.optimizer,
opt_idx=0,
model=(module if module is not None else getattr(self._strategy, "model", None)),
closure=closure,
model=(module if module is not None else getattr(self._strategy, "model", None))
)


Expand Down

0 comments on commit 55ce21b

Please sign in to comment.