Created
December 22, 2019 14:11
-
-
Save omarsar/152eaf63c9df1d95f5fd124c6bd43044 to your computer and use it in GitHub Desktop.
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
## loss function | |
criterion = nn.MSELoss() | |
## optimizer algorithm | |
optimizer = torch.optim.SGD(model.parameters(), lr=0.01) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment