Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcnz committed Oct 26, 2024
1 parent 0815420 commit e44162b
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 160 deletions.
20 changes: 11 additions & 9 deletions docs/src/part3/part3_artifacts/simple_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ class SimpleNet(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(3, 6, 5)
self.conv2 = nn.Conv2d(6, 9, 5)
self.fc = nn.Linear(5184, 10)
self.conv2 = nn.Conv2d(3, 6, 5)
self.fc = nn.Linear(4704, 10)

def forward(self, x: torch.Tensor):
x = self.conv1(x)
x = F.relu(x)
x = self.conv2(x)
x = F.relu(x)
x = torch.flatten(x, 1)
x = self.fc(x)
return x
z = self.conv1(x)
z = F.relu(z)
y = self.conv2(x)
y = F.relu(y)
o = z + y
o = torch.flatten(o, 1)
o = self.fc(o)
return o

Binary file removed docs/src/part3/simple_net.pt2
Binary file not shown.
Loading

0 comments on commit e44162b

Please sign in to comment.