code: def repackage_var(h):
      
      if IS_TORCH_04: return h.detach() if type(h) == torch.Tensor else tuple(repackage_var(v) for v in h)
      else: return Variable(h.data) if type(h) == Variable else tuple(repackage_var(v) for v in h)
docs: Wraps h in new Variables, to detach them from their history.