Skip to content

Conversation

@tomassosorio
Copy link

Module: 00

Lab/Demo: 02-train-model

Fixes #

  • Allow training model using CPU if no-cuda arg is True

Changes proposed in this pull request:
from
device = torch.device("cuda")
to
device = torch.device("cuda" if use_cuda else "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

Successfully merging this pull request may close these issues.

1 participant