big refactoring

This commit is contained in:
hobogalaxy committed 2020-11-21 03:54:38 +01:00
1 parent cfc298a2d2
commit 53e063ca7e
10 files changed
+41 -12

No files matched your search

@@ -10,10 +10,12 @@ from training_modules.models import *
class LitModel(pl.LightningModule):
def __init__(self, hparams):
def __init__(self, hparams=None):
super().__init__()
self.save_hyperparameters(hparams)
if hparams:
self.save_hyperparameters(hparams)
self.model = SimpleLinearMNIST(config=self.hparams)
def forward(self, x):