class_docstr: Abstract decoder module.
class_docstr_tok: ["Abstract","decoder","module","."]
docstr: One-step forward hypothesis.
  
  Args:
      label_sequence: Current label sequence.
      state: Decoder hidden states.
  
  Returns:
      out: Decoder output sequence.
      state: Decoder hidden states.
docstr_tok: ["One-step","forward","hypothesis",".","Args",":","label_sequence",":","Current","label","sequence",".","state",":","Decoder","hidden","states",".","Returns",":","out",":","Decoder","output","sequence",".","state",":","Decoder","hidden","states","."]
code: def score(
      self,
      label_sequence: List[int],
      states: Union[
          List[Dict[str, torch.Tensor]],
          List[torch.Tensor],
          Tuple[torch.Tensor, Optional[torch.Tensor]],
      ],
  ) -> Tuple[
      torch.Tensor,
      Union[
          List[Dict[str, torch.Tensor]],
          List[torch.Tensor],
          Tuple[torch.Tensor, Optional[torch.Tensor]],
      ],
  ]:
      """One-step forward hypothesis.
  
      Args:
          label_sequence: Current label sequence.
          state: Decoder hidden states.
  
      Returns:
          out: Decoder output sequence.
          state: Decoder hidden states.
  
      """
      raise NotImplementedError
  
file_path: espnet/espnet2/asr_transducer/decoder/abs_decoder.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Optional, Tuple, Union
  import torch
label_desc: Use image node_id 2 for calling the AbsDecoder obj's underlying member method code with example usage: obj.score(label_sequence, states) without return types