Created
February 26, 2020 21:00
-
-
Save bilal2vec/30981747e186c406ea9c3213df9eb510 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
| optimizer = torch.optim.SGD(model.parameters(), lr=0.1, momentum=0.9) | |
| scheduler = torch.optim.CyclicMomentum(optimizer) | |
| data_loader = torch.utils.data.DataLoader(...) | |
| for epoch in range(10): | |
| for batch in data_loader: | |
| scheduler.batch_step() | |
| train_batch(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment