Last active
April 22, 2022 07:36
-
-
Save NilakshanKunananthaseelan/bd4eb044b8bfe01026d6a5892375b2f1 to your computer and use it in GitHub Desktop.
Optimizer and criterion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch.optim as optim | |
net = Net() | |
criterion = nn.MSELoss() | |
optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.0,weight_decay=0.000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment