fix a bug for wenet streaming model. (#1054)
* fix a bug for wenet streaming model. The chunk shift was wrong. See https://github.com/wenet-e2e/wenet/blob/main/runtime/core/decoder/asr_model.cc#L15 and https://github.com/wenet-e2e/wenet/blob/main/runtime/core/decoder/asr_model.cc#L28
This commit is contained in:
@@ -97,7 +97,9 @@ class OnlineWenetCtcModel::Impl {
|
||||
right_context_ + 1;
|
||||
}
|
||||
|
||||
int32_t ChunkShift() const { return required_cache_size_; }
|
||||
int32_t ChunkShift() const {
|
||||
return config_.wenet_ctc.chunk_size * subsampling_factor_;
|
||||
}
|
||||
|
||||
OrtAllocator *Allocator() const { return allocator_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user