title: How to check if model in on CUDA?
body: <p>I would like to check if model is on CUDA. How to do that?</p>
  <pre class="lang-py prettyprint-override"><code>import torch
  import torchvision
  model = torchvision.models.resnet18()
  model.to('cuda')
  </code></pre>
  <p>Seams that <code>model.is_cuda()</code> is not working.</p>