dschandra commited on
Commit
d37169c
·
verified ·
1 Parent(s): e2931b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ class Net(nn.Module):
16
  self.fc3 = nn.Linear(64, 10)
17
 
18
  def forward(self, x):
19
- x = x.view(-1, 28 * 28)
20
  x = F.relu(self.fc1(x))
21
  x = F.relu(self.fc2(x))
22
  x = self.fc3(x)
 
16
  self.fc3 = nn.Linear(64, 10)
17
 
18
  def forward(self, x):
19
+ x = x.view(-1, 28 * 28) # Flatten the input
20
  x = F.relu(self.fc1(x))
21
  x = F.relu(self.fc2(x))
22
  x = self.fc3(x)