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-09-26 16:51:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-09-26 16:51:43 +0800
Commit
12d04ce8ed6186ff176ab7266d5b336107a48ca8
12d04ce8
1 parent
69c8e7b9
Fix running MeloTTS models on GPU. (#1379)
We need to use opset 18 to export the model to onnx.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
scripts/melo-tts/export-onnx.py
scripts/melo-tts/export-onnx.py
查看文件 @
12d04ce
...
...
@@ -229,7 +229,7 @@ def main():
torch_model
=
ModelWrapper
(
model
)
opset_version
=
1
3
opset_version
=
1
8
x
=
torch
.
randint
(
low
=
0
,
high
=
10
,
size
=
(
60
,),
dtype
=
torch
.
int64
)
print
(
x
.
shape
)
x_lengths
=
torch
.
tensor
([
x
.
size
(
0
)],
dtype
=
torch
.
int64
)
...
...
请
注册
或
登录
后发表评论