Pytorch get model input shape.