MultivexAI commited on
Commit
5199614
·
verified ·
1 Parent(s): 5edc085

Upload 2 files

Browse files
Files changed (2) hide show
  1. model.pth +3 -0
  2. model.py +20 -0
model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:683dd84766d114a8e012f85d66945a329b40978537387baf492d6d97aba70c54
3
+ size 21729
model.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+
4
+ class AddModel(nn.Module):
5
+ """
6
+ Input(2) -> Linear(32) -> ReLU -> Linear(64) -> ReLU -> Linear(1) -> Output
7
+ """
8
+ def __init__(self):
9
+ super(AddModel, self).__init__()
10
+ self.fc1 = nn.Linear(2, 32)
11
+ self.relu1 = nn.ReLU()
12
+ self.fc2 = nn.Linear(32, 64)
13
+ self.relu2 = nn.ReLU()
14
+ self.fc3 = nn.Linear(64, 1)
15
+
16
+ def forward(self, x):
17
+ x = self.relu1(self.fc1(x))
18
+ x = self.relu2(self.fc2(x))
19
+ x = self.fc3(x)
20
+ return x