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

RuntimeError when part of the model is freezed #5

Open
koren-v opened this issue Dec 31, 2020 · 0 comments
Open

RuntimeError when part of the model is freezed #5

koren-v opened this issue Dec 31, 2020 · 0 comments

Comments

@koren-v
Copy link

koren-v commented Dec 31, 2020

Hi, as mentioned in the title, part of the model's parameters are freezer (requires_grad=False) and they are on the CPU, in this case, I got the RuntimeError on this line that says that tensors must be on the same device, how should I modify the code to handle my case?

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