Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-05-28 17:06:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-05-28 17:06:17 +0800
Commit
50a2eaa41f142c5deabc90ea8417aecca1581d11
50a2eaa4
1 parent
5860e45b
Reset encoder states on endpointing for streaming transducer. (#924)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
sherpa-onnx/csrc/online-recognizer-transducer-impl.h
sherpa-onnx/csrc/online-recognizer-transducer-impl.h
查看文件 @
50a2eaa
...
...
@@ -344,6 +344,9 @@ class OnlineRecognizerTransducerImpl : public OnlineRecognizerImpl {
}
}
// reset encoder states
s
->
SetStates
(
model_
->
GetEncoderInitStates
());
// we keep the decoder_out
decoder_
->
UpdateDecoderOut
(
&
s
->
GetResult
());
Ort
::
Value
decoder_out
=
std
::
move
(
s
->
GetResult
().
decoder_out
);
...
...
请
注册
或
登录
后发表评论