Update neural network code
This commit is contained in:
parent
06d6cbbbac
commit
28d2083a03
@ -19,7 +19,7 @@ class TinyModel(nn.Module):
|
||||
x = self.layer2(x)
|
||||
return x
|
||||
|
||||
model = TinyModel()
|
||||
model = TinyModel()
|
||||
loss_fn = nn.MSELoss()
|
||||
optimizer = optim.SGD(model.parameters(), lr=0.01)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user