title: PyTorch: How to get the shape of a Tensor as a list of int
body: <p>In numpy, <code>V.shape</code> gives a tuple of ints of dimensions of V.</p>
  
  <p>In tensorflow <code>V.get_shape().as_list()</code> gives a list of integers of the dimensions of V.</p>
  
  <p>In pytorch, <code>V.size()</code> gives a size object, but how do I convert it to ints?</p>