mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
removed hparams req
This commit is contained in:
@@ -25,7 +25,7 @@ class LightningTemplateModel(LightningModule):
|
||||
:param hparams:
|
||||
"""
|
||||
# init superclass
|
||||
super(LightningTemplateModel, self).__init__(hparams)
|
||||
super(LightningTemplateModel, self).__init__()
|
||||
|
||||
self.batch_size = hparams.batch_size
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class LightningTestModel(LightningModule):
|
||||
:param hparams:
|
||||
"""
|
||||
# init superclass
|
||||
super(LightningTestModel, self).__init__(hparams)
|
||||
super(LightningTestModel, self).__init__()
|
||||
|
||||
self.batch_size = hparams.batch_size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user