Solved by ptrblck in post #6 
              
              
                Thanks for the code snippet. 
The simple model is running fine without the modification of the conv1.weight and doesn’t yield any errors. 
When you are running the conv1.weight.data assignment, you should get an error as: 
TypeError: cannot assign 'torch.FloatTensor' as parameter 'weight' (torch.nn.…