Solved by InnovArul in post #2 
              
              
                you are storing reference to the weight in previous and now variables. 
Store the cloned weight in previous (previous = model.head[12].weight.clone()). You will see the changes.