ExamDumpster

Free PTCA sample questions

Real questions from the PyTorch Certified Associate (PTCA) practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 6 of 12 free sample questions.

Question 1Choose one

An ML engineer is initializing a tensor from a nested Python list and needs PyTorch to track operations on it for automatic differentiation. Which of the following approaches is the most idiomatic and efficient way to achieve this upon creation?

Question 2Choose one

A researcher is implementing a custom regularization penalty. They need to extract an intermediate feature map from the forward pass, perform some non-differentiable numpy operations on it to calculate a logging metric, and then continue the standard backward pass using the original feature map. Which PyTorch mechanism should be used to extract the feature map for the logging metric without breaking or modifying the computation graph?

Question 3Choose one

True or False: Calling `model.eval()` automatically disables gradient computation during the forward pass, effectively acting as a substitute for `torch.no_grad()` during inference.

Question 4Choose one

During the setup phase of a deep learning pipeline, an architect configures the model and optimizer. Which of the following sequences represents the correct best practice for initializing an optimizer in relation to moving the model to a target hardware device (e.g., GPU)?

Question 5Choose one

A computer vision model requires blending a feature map tensor `A` with a per-channel bias tensor `B`. Tensor `A` has the shape `(16, 3, 256, 256)` representing (batch, channels, height, width). Tensor `B` has the shape `(3, 1, 1)`. When the operation `C = A + B` is executed, what will be the resulting shape of tensor `C` based on PyTorch broadcasting semantics?

Question 6Choose one

To compute the gradients of the loss with respect to all tensors in the computation graph that have requires_grad=True, you must call the ________ method on the final loss tensor.

6 more free samples are waiting

Create a free account to unlock the whole PTCA sample bank, or get full access to all 150 practice questions in the simulator.

Create account