【fast_inference_】通过简单添加torch.no_grad()修饰器,可能会使速度加快 (#930)

* 添加with torch.no_grad(),速度快一大截

* 恢复先前缩进

* 恢复make batch的位置

* 改用修饰器

* 去除没必要的增加的空行

---------

Co-authored-by: XTer <xxoy1234@outlook.com>
This commit is contained in:
箱庭XTer
2024-04-07 18:36:09 +08:00
committed by GitHub
parent ec7647e08d
commit 3706ad1b8b
2 changed files with 43 additions and 38 deletions

4
.gitignore vendored
View File

@@ -10,6 +10,8 @@ reference
GPT_weights
SoVITS_weights
TEMP
PortableGit
ffmpeg.exe
ffprobe.exe
tmp_audio
trained