espnet.nets.beam_search.Hypothesis
Less than 1 minute
espnet.nets.beam_search.Hypothesis
class espnet.nets.beam_search.Hypothesis(yseq: Tensor, score: float | Tensor = 0, scores: Dict[str, float | Tensor] = {}, states: Dict[str, Any] = {}, hs: List[Tensor] = [])
Bases: NamedTuple
Hypothesis data type.
Create new instance of Hypothesis(yseq, score, scores, states, hs)
asdict() → dict
Convert data to JSON-friendly dict.
hs : List[Tensor]
Alias for field number 4
score : float | Tensor
Alias for field number 1
scores : Dict[str, float | Tensor]
Alias for field number 2
states : Dict[str, Any]
Alias for field number 3
yseq : Tensor
Alias for field number 0