title: Documentation for PyTorch .to('cpu') or .to('cuda')
body: <p>I've searched through the <a href="https://pytorch.org/docs/stable/index.html" rel="noreferrer">PyTorch documenation</a>, but can't find anything for <code>.to()</code> which moves a tensor to CPU or CUDA memory.</p>
  
  <p>I remember seeing somewhere that calling <code>to()</code> on a <code>nn.Module</code> is an in-place operation, but not so on a tensor.</p>
  
  <p>Is there a in-place version for <code>Tensor</code>s?</p>
  
  <p>Where do I find the doco for <code>to()</code> for both <code>nn.Module</code> and <code>Tensor</code> (and possibly elsewhere)?</p>