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
AHN Sung Hwan
2024-04-11 11:34:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-04-11 10:34:44 +0800
Commit
904a3cc8a9fb396be39a456392b79ebef2af50de
904a3cc8
1 parent
d21c45d0
Fix a bug in mean calculation of 'ys_probs' (#748)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
sherpa-onnx/csrc/transducer-keyword-decoder.cc
sherpa-onnx/csrc/transducer-keyword-decoder.cc
查看文件 @
904a3cc
...
...
@@ -152,7 +152,7 @@ void TransducerKeywordDecoder::Decode(
if
(
matched
)
{
float
ys_prob
=
0.0
;
int32_t
length
=
best_hyp
.
ys_probs
.
size
();
for
(
int32_t
i
=
1
;
i
<=
matched_state
->
level
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
matched_state
->
level
;
++
i
)
{
ys_prob
+=
best_hyp
.
ys_probs
[
i
];
}
ys_prob
/=
matched_state
->
level
;
...
...
请
注册
或
登录
后发表评论