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

gpus depected in new version of pytorchLightning #42

Open
Sauravdas3 opened this issue Sep 29, 2024 · 0 comments
Open

gpus depected in new version of pytorchLightning #42

Sauravdas3 opened this issue Sep 29, 2024 · 0 comments

Comments

@Sauravdas3
Copy link

in the
PL.Trainer ( # the updated code should be===>
# Use "gpu" if available, else "cpu"
accelerator="gpu" if torch.cuda.is_available() else "cpu",

                 devices=1,        # Always use 1 device, whether it's GPU or CPU
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