All quizzes
Free quiz · 34 questions in the bank

PyTorch quiz

Test your PyTorch knowledge with a free interactive quiz — 34 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What does the `batch_size` parameter in a `DataLoader` control?

In this round
  1. What does the `batch_size` parameter in a `DataLoader` control?
  2. How do you reshape a tensor without changing its data?
  3. What does `.backward()` do?
  4. How do you move a tensor to a GPU?
  5. What does `torch.no_grad()` do?
  6. What is `nn.Module` used for?
  7. How do you check if a GPU is available?
  8. How do you save a trained model's weights?
  9. What is a `torch.Tensor`?
  10. What is an activation function like `nn.ReLU` for?
  11. What does `optimizer.step()` do?
  12. What is an "epoch"?
Gaps to close?
Read the curated PyTorch notes — core concepts, patterns, interview prep.
PyTorch notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka