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
I tried to find out the GPU training setting. Can you share the code snippet where can I set the GPU for training and testing?
The text was updated successfully, but these errors were encountered:
you should be better use google colab and active GPU runtime easily
Sorry, something went wrong.
This is the code snippet:
def get_device(): return torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
I hope this will solve resolve your issues.
No branches or pull requests
I tried to find out the GPU training setting. Can you share the code snippet where can I set the GPU for training and testing?
The text was updated successfully, but these errors were encountered: