class_docstr: Loss function module for duration predictor.
  
  The loss value is Calculated in log domain to make it Gaussian.
docstr: Initilize duration predictor loss module.
  
  Args:
      offset (float, optional): Offset value to avoid nan in log domain.
      reduction (str): Reduction type in loss calculation.
code: def __init__(self, offset=1.0, reduction="mean"):
      """Initilize duration predictor loss module.
  
      Args:
          offset (float, optional): Offset value to avoid nan in log domain.
          reduction (str): Reduction type in loss calculation.
  
      """
      super(DurationPredictorLoss, self).__init__()
      self.criterion = torch.nn.MSELoss(reduction=reduction)
      self.offset = offset
  
file_path: espnet/espnet/nets/pytorch_backend/fastspeech/duration_predictor.py
imports: import torch
  from espnet.nets.pytorch_backend.transformer.layer_norm import LayerNorm
label_desc: Use image node_id 1 to create a new DurationPredictorLoss object from inherited base classes: torch.nn with example: obj = DurationPredictorLoss(offset, reduction)