Solved by jpeg729 in post #6 
              
              
                Aha. You called it .linear rather than .layer1, so this will work… 
model.linear.weight.data.fill_(0)
model.linear.bias.data.fill_(0)