Pytorch Net.weight