Pytorch Get Tensor Shape