-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Contains Unreachable Sections #293
Comments
Hey @lordsoffallen! I'm here to assist you with any issues or questions you have in the OpenVoice repository. I can help you solve bugs, answer questions, and even guide you on becoming a contributor. Just let me know how I can assist you! The code at line 583 in if not reverse:
x1 = m + x1 * torch.exp(logs) * x_mask
x = torch.cat([x0, x1], 1)
logdet = torch.sum(logs, [1, 2])
return x, logdet
else:
x1 = (x1 - m) * torch.exp(-logs) * x_mask
x = torch.cat([x0, x1], 1)
return x The code at line 583 is part of the The |
@dosu code at line 583 isn't part of else statement which is the issue. The if else statement you shared ends the function and the code afterwards don't get executed. |
The code at line 583 in Here is the relevant part of the code: if not reverse:
return x, logdet
else:
return x Since both branches of the |
Hi,
https://github.com/myshell-ai/OpenVoice/blob/main/openvoice/modules.py#L583 is unreachable due to if else statement above, is this a bug or it is intended?
The text was updated successfully, but these errors were encountered: