title: Why do I get RuntimeError: CUDA error: invalid argument in pytorch?
body: <p>Recently I've frequently been getting <code>RuntimeError: CUDA error: invalid argument</code> when calling functions like <code>torch.cholesky</code> e.g.:</p>
  
  <pre class="lang-py prettyprint-override"><code>import torch
  a = torch.randn(3, 3, device="cuda:0")
  a = torch.mm(a, a.t()) # make symmetric positive-definite
  torch.cholesky(a)
  </code></pre>
  
  <p>This works fine if I use <code>device="cpu"</code> instead. This error isn't very descriptive, so I'm not sure what's wrong here.</p>