class_docstr: Base criterion class that mimics Pytorch's Loss.
class_docstr_tok: ["Base","criterion","class","that","mimics","Pytorch","'s","Loss","."]
code: def __init__(self, reduction="mean", skip_forward=False):
      super(_Loss, self).__init__()
      if reduction != "mean":
          raise NotImplementedError("reduction %s not supported")
      self.reduction = reduction
      self.skip_forward = skip_forward
  
imports: import crypten
  import torch
  from .module import Module
label_desc: Use image node_id 1 to create a new _Loss object from inherited base classes: Module with example: obj = _Loss(reduction, skip_forward)