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-31 10:27:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-05-31 10:27:29 +0800
Commit
a689249f88e9838e2d9230c601d2377269d35abb
a689249f
1 parent
1e277ae9
Fix building for Android (#949)
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h
sherpa-onnx/csrc/online-transducer-nemo-model.cc
sherpa-onnx/csrc/online-recognizer-transducer-nemo-impl.h
查看文件 @
a689249
...
...
@@ -63,7 +63,7 @@ class OnlineRecognizerTransducerNeMoImpl : public OnlineRecognizerImpl {
AAssetManager
*
mgr
,
const
OnlineRecognizerConfig
&
config
)
:
config_
(
config
),
symbol_table_
(
mgr
,
config
.
model_config
.
tokens
),
endpoint_
(
mgr
config_
.
endpoint_config
),
endpoint_
(
config_
.
endpoint_config
),
model_
(
std
::
make_unique
<
OnlineTransducerNeMoModel
>
(
mgr
,
config
.
model_config
))
{
if
(
config
.
decoding_method
==
"greedy_search"
)
{
...
...
sherpa-onnx/csrc/online-transducer-nemo-model.cc
查看文件 @
a689249
...
...
@@ -62,17 +62,17 @@ class OnlineTransducerNeMoModel::Impl {
sess_opts_
(
GetSessionOptions
(
config
)),
allocator_
{}
{
{
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
encoder
_filename
);
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
encoder
);
InitEncoder
(
buf
.
data
(),
buf
.
size
());
}
{
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
decoder
_filename
);
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
decoder
);
InitDecoder
(
buf
.
data
(),
buf
.
size
());
}
{
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
joiner
_filename
);
auto
buf
=
ReadFile
(
mgr
,
config
.
transducer
.
joiner
);
InitJoiner
(
buf
.
data
(),
buf
.
size
());
}
}
...
...
请
注册
或
登录
后发表评论