mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-04 22:54:18 +00:00
Minor fix for transducer_emformer/streaming_feature_extractor.py
This commit is contained in:
parent
e97c9fbdbf
commit
ece99a862b
@ -66,7 +66,7 @@ class FeatureExtractionStream(object):
|
||||
self.context_size = context_size
|
||||
self.decoding_method = decoding_method
|
||||
if decoding_method == "greedy_search":
|
||||
self.hyp: List[int] = None
|
||||
self.hyp: Optional[List[int]] = None
|
||||
self.decoder_out: Optional[torch.Tensor] = None
|
||||
elif decoding_method == "modified_beam_search":
|
||||
self.hyps = HypothesisList()
|
||||
|
Loading…
x
Reference in New Issue
Block a user