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/5Score 0

What is a `Dataset` and `DataLoader` used for?

Questions in this quiz
  1. What is a `Dataset` and `DataLoader` used for?
  2. What is an activation function like `nn.ReLU` for?
  3. What is an "epoch"?
  4. What does `.backward()` do?
  5. How do you check if a GPU is available?
  6. What does `requires_grad=True` on a tensor do?
  7. Why must you call `optimizer.zero_grad()` before each `.backward()` call in a training loop?
  8. What does `torch.no_grad()` do?
  9. What does `optimizer.step()` do?
  10. What does `torchvision.transforms` provide?
  11. How do you move a tensor to a GPU?
  12. How do you put a model into evaluation mode for inference?
Gaps to close?
Read the curated PyTorch notes — core concepts, patterns, interview prep.
PyTorch notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web