docstr: Rests the losses. Called at the beginning of each epoch.
docstr_tok: ["Rests","the","losses",".","Called","at","the","beginning","of","each","epoch","."]
code: def _reset_loss(self):
      """
      Rests the losses. Called at the beginning of each epoch.
      """
      if isinstance(self.loss, list):
          for partial_loss in self.loss:
              partial_loss.reset()
      else:
          self.loss.reset()
  
imports: import torch
  import torch.nn
  import torch.optim
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from typing import List, Dict, Callable, Union, Tuple, Optional
  from alibi.models.pytorch.metrics import Metric, LossContainer
label_desc: Use image node_id 11 for calling the Model obj's underlying member method code with example usage: obj._reset_loss() without return types