Solved by MariosOreo in post #6 
              
              
                Hello, 
I try your code snippet on my machine, it works fine. 
[{'nesterov': False, 'weight_decay': 0, 'lr': 0.001, 'dampening': 0, 'params': [Parameter containing:
tensor([[ 0.2869, -0.1661,  0.1697,  0.4048, -0.3160],
        [-0.1766,  0.2777, -0.0006, -0.0400,  0.1492]], requires_grad=True), Par…