* rework lightning model for mnist

* sort imports

* add comment to pre-commit-config

* remove returns from test_step because it's bugged

* update experiment configs

* Update README.md
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-03-10 15:33:14 +01:00
1 parent 67d531ab67
commit b1e0bf9717
23 files changed
+480 -320

No files matched your search

+1 -2
View File
@@ -2,7 +2,7 @@ from torch import nn
class SimpleDenseNet(nn.Module):
def __init__(self, hparams):
def __init__(self, hparams: dict):
super().__init__()
self.model = nn.Sequential(
@@ -19,7 +19,6 @@ class SimpleDenseNet(nn.Module):
nn.ReLU(),
nn.Dropout(p=hparams["dropout3"]),
nn.Linear(hparams["lin3_size"], hparams["output_size"]),
nn.LogSoftmax(dim=1),
)
def forward(self, x):