title: Scope of with torch.no_grad() in pytorch
body: <pre><code>with torch.no_grad():
      input = Variable(input).cuda()
      target = Variable(target).cuda(non_blocking=True)
  y=model(input)
  # many things here
  </code></pre>
  
  <p>Is the no_grad continue to having effect out of the "with" scope?</p>