espnet.nets.batch_beam_search.BatchHypothesis
Less than 1 minute
espnet.nets.batch_beam_search.BatchHypothesis
class espnet.nets.batch_beam_search.BatchHypothesis(yseq: Tensor = tensor([]), score: Tensor = tensor([]), length: Tensor = tensor([]), scores: Dict[str, Tensor] = {}, states: Dict[str, Dict] = {}, hs: List[Tensor] = [])
Bases: NamedTuple
Batchfied/Vectorized hypothesis data type.
Create new instance of BatchHypothesis(yseq, score, length, scores, states, hs)
hs : List[Tensor]
Alias for field number 5
length : Tensor
Alias for field number 2
score : Tensor
Alias for field number 1
scores : Dict[str, Tensor]
Alias for field number 3
states : Dict[str, Dict]
Alias for field number 4
yseq : Tensor
Alias for field number 0