Skip to content
ml-recall

#device

1 question from PyTorch

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Single choice

mediumAI-checkedPyTorch

On a machine with a GPU:

t = torch.rand(2, 3)
t.to("cuda")
model = nn.Linear(3, 1)
model.to("cuda")
print(t.device, next(model.parameters()).device)

What is printed?

Choose one option