Skip to content

Duet Split Learning GPU devices #308

Discussion options

You must be logged in to vote

Hi @umermjd11 You can send your model to use "cuda" (after checking if it has "cuda") by doing so

if has_cuda:
    model.cuda(device)
else:
    model.cpu()

Check this example for details

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by umermjd11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants