Question 1
In PyTorch, which function creates a tensor filled with zeros of shape (2, 3)?
Correct Answer:
torch.zeros(2, 3)
Question 2
What attribute must a tensor have set to True for autograd to track operations and compute its gradient during backpropagation?
Correct Answer:
requires_grad
Question 3
Which method moves a tensor x onto a CUDA GPU device in a device-agnostic way that also works on CPU-only machines?
Correct Answer:
x.to(device) where device is set from torch.cuda.is_available()
Question 4
What does calling .backward() on a scalar loss tensor do?
Correct Answer:
It computes the gradients of the loss with respect to all leaf tensors that have requires_grad=True
Question 5
Which statement about torch.Tensor.view() versus torch.Tensor.reshape() is correct?
Correct Answer:
view() requires the tensor to be contiguous in memory and returns a view sharing storage, while reshape() may return a view or a copy
Question 1
Exam overview

About this Exam

Prepare with the PyTorch Certified Associate Practice Questions - PyTorch Certified Associate (PTCA) Exam practice quiz. This question bank includes 100 questions covering tensor, torch, model, shape, and pytorch. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

PyTorch Certified Associate Practice Questions - PyTorch Certified Associate (PTCA) Exam

This practice set contains 100 questions from the matching question bank and focuses on tensor, torch, model, shape, and pytorch. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions