Skip to content

Commit ef34dc1

Browse files
committed
inputs
1 parent 7273603 commit ef34dc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytorch_lightning/overrides/data_parallel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ def __init__(self, lightning_module: LightningModule):
159159

160160
def forward(self, *inputs, **kwargs):
161161
if self.module.training:
162-
output = self.module.training_step(*inputs[0], **kwargs[0])
162+
output = self.module.training_step(*inputs, **kwargs)
163163
fx_called = 'training_step'
164164
elif self.module.testing:
165-
output = self.module.test_step(*inputs[0], **kwargs[0])
165+
output = self.module.test_step(*inputs, **kwargs)
166166
fx_called = 'test_step'
167167
else:
168-
output = self.module.validation_step(*inputs[0], **kwargs[0])
168+
output = self.module.validation_step(*inputs, **kwargs)
169169
fx_called = 'validation_step'
170170
if output is None:
171171
warn_missing_output(f'{fx_called} returned None. Did you forget to return an output?')

0 commit comments

Comments
 (0)