class_docstr: Context-manager and decorator that disables gradient calculation.
  See `torch.autograd.no_grad <https://pytorch.org/docs/stable/autograd.html#torch.autograd.no_grad>`_
class_docstr_tok: ["Context-manager","and","decorator","that","disables","gradient","calculation",".","See","`","torch.autograd.no_grad","<","https",":","\/\/pytorch.org\/docs\/stable\/autograd.html","#","torch.autograd.no_grad",">","`","_"]
code: def __init__(self):
      super(no_grad, self).__init__()
      if _pytorch_version_lt("0.4.1"):  # No grad is not a decorator
          _patch_call(self, self.call)
  
imports: import functools
  import traceback
  import warnings
  import torch
  from packaging import version
  import torchbearer
  import sys
label_desc: Use image node_id 1 to create a new no_grad object from inherited base classes: torch with example: obj = no_grad()