File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pytorch_lightning/overrides Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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?' )
You can’t perform that action at this time.
0 commit comments