Disable gradient computation. Returns the previous state so it can be restored later with disable_no_grad(prev).
disable_no_grad(prev)
Disable gradient computation. Returns the previous state so it can be restored later with
disable_no_grad(prev).