class_docstr: Loss function module for CBHG.
class_docstr_tok: ["Loss","function","module","for","CBHG","."]
docstr: Initialize CBHG loss module.
  
  Args:
      use_masking (bool): Whether to mask padded part in loss calculation.
docstr_tok: ["Initialize","CBHG","loss","module",".","Args",":","use_masking","(","bool",")",":","Whether","to","mask","padded","part","in","loss","calculation","."]
code: def __init__(self, use_masking=True):
      """Initialize CBHG loss module.
  
      Args:
          use_masking (bool): Whether to mask padded part in loss calculation.
  
      """
      super(CBHGLoss, self).__init__()
      self.use_masking = use_masking
  
file_path: espnet/espnet/nets/pytorch_backend/tacotron2/cbhg.py
imports: import torch
  import torch.nn.functional
  from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
  from espnet.nets.pytorch_backend.nets_utils import make_non_pad_mask
label_desc: Use image node_id 1 to create a new CBHGLoss object from inherited base classes: torch.nn with example: obj = CBHGLoss(use_masking)