Created
February 21, 2019 18:08
-
-
Save ayoubbenaissa/81e02ffc0fb15bd09d144f55b42d79eb to your computer and use it in GitHub Desktop.
pytorch tuto
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: | |
learning_rate = 0.01 | |
optimizer = torch.optim.SGD(model.parameters(), lr=learning_rate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment