code: def reset(self):
      for criterion in self.criterions:
          criterion.zero_grad()
  
file_path: TextAttack/textattack/constraints/grammaticality/language_models/learning_to_write/adaptive_softmax.py
imports: import torch
  from torch import nn
  from torch.autograd import Variable
  from torch.nn.functional import log_softmax
  import textattack
label_desc: Use image node_id 2 for calling the AdaptiveLoss obj's underlying member method code with example usage: obj.reset() without return types