title: PyTorch: new_ones vs ones
body: <p>In PyTorch what is the difference between <code>new_ones()</code> vs <code>ones()</code>. For example,</p>
  
  <pre><code>x2.new_ones(3,2, dtype=torch.double)
  </code></pre>
  
  <p>vs </p>
  
  <pre><code>torch.ones(3,2, dtype=torch.double)
  </code></pre>