We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Multiple links - see below.
For example: You should use torch.rand(device='cuda') instead of torch.rand(device=torch.device('cuda'))
torch.rand(device='cuda')
torch.rand(device=torch.device('cuda'))
Instances of this issue:
device = "cuda" if torch.cuda.is_available() else "cpu"
The text was updated successfully, but these errors were encountered:
Another good idea: promote use of torch.set_default_device in tutorials, instead of global device variable, which seems to be a common pattern.
device
Sorry, something went wrong.
/assigntome
The issue is already assigned. Please pick an opened and unnasigned issue with the docathon-h1-2023 label.
@onurtore are you planing to work on this issue or should we reassign?
Hello, I am working on it.
onurtore
Successfully merging a pull request may close this issue.
Add Link
Multiple links - see below.
Describe the bug
For example: You should use
torch.rand(device='cuda')
instead oftorch.rand(device=torch.device('cuda'))
Instances of this issue:
device = "cuda" if torch.cuda.is_available() else "cpu"
on L21Describe your environment
The text was updated successfully, but these errors were encountered: