Format code (#989)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-08-13 11:52:51 +08:00
committed by GitHub
parent 7293002f53
commit 76b67842ba
10 changed files with 218 additions and 117 deletions

View File

@@ -315,8 +315,8 @@ class SineGen(torch.nn.Module):
# generate uv signal
uv = torch.ones_like(f0)
uv = uv * (f0 > self.voiced_threshold)
if(uv.device.type=="privateuseone"):#for DirectML
uv=uv.float()
if uv.device.type == "privateuseone": # for DirectML
uv = uv.float()
return uv
def forward(self, f0, upp):