Skip to content

Commit 58a3adf

Browse files
committed
set running stage on module
1 parent ab27bba commit 58a3adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/overrides/test_data_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def training_step(self, batch, batch_idx):
156156
pl_module = DeviceAccessModel()
157157
# required for redirecting the forward call to training_step
158158
pl_module.trainer = Mock()
159-
pl_module.trainer._running_stage = RunningStage.TRAINING
159+
pl_module.running_stage = RunningStage.TRAINING
160160

161161
root_device = torch.device("cuda", 0)
162162
wrapped_module = LightningParallelModule(pl_module).to(root_device)

0 commit comments

Comments
 (0)