Skip to content
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

fixing torch device error when synthesizer is called with use_cuda=True #3446

Closed
wants to merge 1 commit into from

Conversation

TRY-ER
Copy link

@TRY-ER TRY-ER commented Dec 20, 2023

whenever I declare synthesizer with use_cuda = True. there will be an error that different tensors are in different devices.
After observation it was found that input tensor was on "cpu" while weight is on the gpu.
Hence I modified the code to transfer the input to gpu.
It works fine with my code.

Hope this helps !

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

stale bot commented Jan 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.

@stale stale bot added the wontfix This will not be worked on but feel free to help. label Jan 19, 2024
@stale stale bot closed this Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on but feel free to help.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants