docstr: FrameScoreFeats forward function.
  
  Args:
      label: (Batch, Nsamples)
      label_lengths: (Batch)
      midi: (Batch, Nsamples)
      midi_lengths: (Batch)
      duration: (Batch, Nsamples)
      duration_lengths: (Batch)
  
  Returns:
      output: (Batch, Frames)
docstr_tok: ["FrameScoreFeats","forward","function",".","Args",":","label",":","(","Batch",",","Nsamples",")","label_lengths",":","(","Batch",")","midi",":","(","Batch",",","Nsamples",")","midi_lengths",":","(","Batch",")","duration",":","(","Batch",",","Nsamples",")","duration_lengths",":","(","Batch",")","Returns",":","output",":","(","Batch",",","Frames",")"]
code: def forward(
      self,
      label: Optional[torch.Tensor] = None,
      label_lengths: Optional[torch.Tensor] = None,
      midi: Optional[torch.Tensor] = None,
      midi_lengths: Optional[torch.Tensor] = None,
      duration: Optional[torch.Tensor] = None,
      duration_lengths: Optional[torch.Tensor] = None,
  ) -> Tuple[
      torch.Tensor,
      torch.Tensor,
      torch.Tensor,
      torch.Tensor,
      torch.Tensor,
      torch.Tensor,
  ]:
      """FrameScoreFeats forward function.
  
      Args:
          label: (Batch, Nsamples)
          label_lengths: (Batch)
          midi: (Batch, Nsamples)
          midi_lengths: (Batch)
          duration: (Batch, Nsamples)
          duration_lengths: (Batch)
  
      Returns:
          output: (Batch, Frames)
      """
      label, label_lengths = self.label_aggregate(label, label_lengths)
      midi, midi_lengths = self.label_aggregate(midi, midi_lengths)
      duration, duration_lengths = self.label_aggregate(
          duration, duration_lengths
      )
      return (
          label,
          label_lengths,
          midi,
          midi_lengths,
          duration,
          duration_lengths,
      )
  
imports: from typing import Any, Dict, Optional, Tuple, Union
  import torch
  from typeguard import check_argument_types
  from espnet2.tts.feats_extract.abs_feats_extract import AbsFeatsExtract
  from espnet.nets.pytorch_backend.nets_utils import make_pad_mask
label_desc: Use image node_id 6 for calling the FrameScoreFeats obj's underlying member method code with example usage: obj.forward(label, label_lengths, midi, midi_lengths, duration, duration_lengths) and returns: label,  label_lengths,  midi,  midi_lengths,  duration,  duration_lengths