Skip to content

Commit

Permalink
inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Dec 18, 2020
1 parent 490acf2 commit 7655c37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytorch_lightning/overrides/data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ def __init__(self, lightning_module: LightningModule):

def forward(self, *inputs, **kwargs):
if self.module.training:
output = self.module.training_step(*inputs[0], **kwargs[0])
output = self.module.training_step(*inputs, **kwargs)
fx_called = 'training_step'
elif self.module.testing:
output = self.module.test_step(*inputs[0], **kwargs[0])
output = self.module.test_step(*inputs, **kwargs)
fx_called = 'test_step'
else:
output = self.module.validation_step(*inputs[0], **kwargs[0])
output = self.module.validation_step(*inputs, **kwargs)
fx_called = 'validation_step'
if output is None:
warn_missing_output(f'{fx_called} returned None. Did you forget to return an output?')
Expand Down

0 comments on commit 7655c37

Please sign in to comment.