mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 13:34:20 +00:00
Update decode_stream.py
This commit is contained in:
parent
23e2c0fa96
commit
436ae9b4cc
@ -84,7 +84,7 @@ class DecodeStream(object):
|
||||
self.hyps = HypothesisList()
|
||||
self.hyps.add(
|
||||
Hypothesis(
|
||||
ys=[params.blank_id] * params.context_size,
|
||||
ys=[-1] * (params.context_size - 1) + [params.blank_id],
|
||||
log_prob=torch.zeros(1, dtype=torch.float32, device=device),
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user