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

Why move the tensor to cuda:0? #38

Open
Kelfvin opened this issue Aug 10, 2024 · 0 comments
Open

Why move the tensor to cuda:0? #38

Kelfvin opened this issue Aug 10, 2024 · 0 comments

Comments

@Kelfvin
Copy link

Kelfvin commented Aug 10, 2024

In many files you specify cuda:0, why do you need to do this?

I've found during training that this causes HiFiNet and the weights of the IsolatingLossFunction in it to not be on the same device. I hope to get your reply, thanks!

device = torch.device('cuda:0')
device_ids = [0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant