title: PyTorch 1.9 command equivalent for `zero_gradients`
body: <p>This error comes after the upgrade of my PyTorch version from 1.8 to 1.9.0.</p>
  <p>When using this line:</p>
  <p><code>from torch.autograd.gradcheck import zero_gradients</code>, I get this error message: <code>ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck'</code></p>
  <p>The command:</p>
  <p><code>zero_gradients(im)</code></p>
  <p>is used.</p>
  <p>What is the new command equivalent in PyTorch 1.9.0?</p>