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

Bug in device check #8

Closed
zhanqiuzhang opened this issue Apr 15, 2021 · 1 comment
Closed

Bug in device check #8

zhanqiuzhang opened this issue Apr 15, 2021 · 1 comment

Comments

@zhanqiuzhang
Copy link

The type of device is either torch.device("cuda") or torch.device("cpu"). Thus, device == 'cuda' will always be False and torch.cuda.manual_seed(params['seed']) will not work.

gcorso added a commit that referenced this issue Apr 15, 2021
@gcorso
Copy link
Collaborator

gcorso commented Apr 15, 2021

Thank you very much for noticing, I should have fixed it now. Fortunately, we did not use manual seeds in our experiments.

@gcorso gcorso closed this as completed Apr 15, 2021
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

2 participants