title: Converting python list to pytorch tensor
body: <p>I have a problem converting a python list of numbers to pytorch Tensor : 
  this is my code :  <br></p>
  
  <pre><code>caption_feat = [int(x)  if x &lt; 11660  else 3 for x in caption_feat]
  </code></pre>
  
  <p>printing caption_feat gives : <code>[1, 9903, 7876, 9971, 2770, 2435, 10441, 9370, 2]</code> <br>
  I do the converting like this : <code>tmp2 = torch.Tensor(caption_feat)</code>
  now printing tmp2 gives : <code>tensor([1.0000e+00, 9.9030e+03, 7.8760e+03, 9.9710e+03, 2.7700e+03, 2.4350e+03,
          1.0441e+04, 9.3700e+03, 2.0000e+00])</code> <br>
  However I expected to get : <code>tensor([1. , 9903, , 9971. ......])</code> 
  Any Idea?</p>