Pytorch Get Shaped