mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-25 12:50:57 +08:00
updated args
This commit is contained in:
1 parent
e801914d1d
commit
c54dd94295
3 files changed
+16
-18
No files matched your search
@@ -50,13 +50,7 @@ class RootModule(GradInformation, ModelIO, OptimizerConfig, ModelHooks):
|
||||
:param x:
|
||||
:return:
|
||||
"""
|
||||
if self.from_lightning:
|
||||
# route the forward call to the correct step type
|
||||
if self.training:
|
||||
return self.training_step(*args, **kwargs)
|
||||
else:
|
||||
return self.validation_step(*args, **kwargs)
|
||||
|
||||
raise NotImplementedError
|
||||
|
||||
def validation_step(self, data_batch, batch_nb):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user