Solved by zazzyy in post #2 
              
              
                Hi @jmandivarapu1 
Based on what I understand, method Tensor.fill_(val) intends to let you fill tensors with a certain value, just like numpy.zeros() (I’m not totally sure about this). But in your example,  net.conv1.weight[0].data.fill_(1.0) will certainly fill net.conv1.weight[0] with all 1. 
To m…