Solved by ptrblck in post #2 
              
              
                The learning rate scheduler adjusts the learning rates stored in the optimizer. 
In your example a step function is used to lower the learning rate after 7 steps with a multiplicative factor of gamma=0.1. 
Assuming that your initial learning rate is 1e-1: 
optimizer = optim.SGD(model.parameters(), l…