Skip to content

Commit

Permalink
[Fix] Fix scale_lr in SingleDeviceStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
fanqiNO1 committed Nov 20, 2023
1 parent 30262f4 commit c558951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/runner/_flexible_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ def train(self) -> nn.Module:
max_epochs=self.max_epochs,
max_iters=self.max_iters,
train_micro_batch_size_per_gpu=_get_batch_size(
self._train_dataloader)) # type: ignore
self.train_dataloader)) # type: ignore

self.strategy.prepare(
self.model,
Expand Down

0 comments on commit c558951

Please sign in to comment.