Dev (#93)
* 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:
1 parent
67d531ab67
commit
b1e0bf9717
23 files changed
+480
-320
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user